HTML5 <menu> Tag
ExampleA menu list:
Try it yourself » |
Definition and Usage
The <menu> tag defines a list or menu of commands.
The <menu> tag is used for context menus, toolbars and for listing form controls and commands.
Differences Between HTML 4.01 and HTML5
The menu element is deprecated in HTML 4.01.
The menu element is redefined in HTML5.
Tips and Notes
Tip: Use CSS to style menu lists.
Attributes
New : New in HTML5.
Attribute | Value | Description |
---|---|---|
labelNew | menulabel | Defines a visible label for the menu |
typeNew | context toolbar list |
Defines which type of menu to display. Default value is "list". |
Standard Attributes
The <menu> tag also supports the Standard Attributes in HTML5.
Event Attributes
The <menu> tag also supports the Event Attributes in HTML5.