/

HTML / CSS / JavaScript Tutorial

HTML Element: <menu>

[this page | pdf | back links]

The HTML <menu> element indicates a menu or list of commands. In theory, it can be used for toolbars, context menus, listing form controls and commands. However, at the time of writing it was not supported by many browsers.

 

The attributes it can take (other than HTML global attributes and HTML event attributes) include:

 

Attribute

Description

More

label

Title / label of command or group of commands

Here

type

Type of element

Here

 

To create or access such an element in JavaScript see here. The corresponding HTML DOM object supports standard DOM properties and methods, and additional properties with the same name and meaning as the attributes of the underlying HTML element referred to above. The default style applicable to this element is shown here.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile