HTML5 <menu> Tag

Example

A menu list:

<menu>
<li><input type="checkbox" />green</li>
<li><input type="checkbox" />blue</li>
</menu>
Code it Online »

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

Hint: Use CSS to style menu lists.

Attributes

Attribute Value Description
label menulabel Defines a visible label for the menu
type 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.


Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!