English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML: The <menu> tag defines an unordered menu list in an HTML document. This tag is also commonly referred to as the <menu> element.
Two series of menu button options examples ("File" and "Edit"):
!doctype html <html> <head> <meta charset="UTF-8"> <title>HTML5 menu tag usage (Basic Tutorial Website oldtoolbag.com)</title> </head> <body> <menu type="toolbar"> <li> <menu label="File"> <button type="button" onclick="new()">New</button> <button type="button" onclick="save()">Save</button> </menu> </li> <li> <menu label="Edit"> <button type="button" onclick="copy()">Copy</button> <button type="button" onclick="paste()">Paste</button> </menu> </li> </menu> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
The <menu> tag is not supported by mainstream browsers at present.
The <menu> tag defines a command list or menu.
The <menu> tag is usually used for text menus, toolbars, and command list options.
The <menu> tag is composed of <li> tags.
You can nest <ol>, <ul>, and <menu> lists.
Tip: Use CSS to define the style of the menu list.
HTML 4.01The <menu> element is deprecated.
HTML5 The <menu> element has been redefined in the middle.
Attribute | Value | Description |
---|---|---|
labelHTML5 | text | Description of the marker for menu items. |
typeHTML5 | context toolbar list | Description of the menu type. The default is "list". |
<menu> tag supports global attributes, see the complete attribute table HTML global attributes.
<menu> tag supports all HTML event attributes.