Latest web development tutorials

HTML <menu> tag


Option two menu buttons series instance ( "File" and "Edit"):

<menu type="toolbar">
<menu label="File">
<button type="button" onclick="file_new()">New...</button>
<button type="button" onclick="file_open()">Open...</button>
<button type="button" onclick="file_save()">Save</button>
<menu label="Edit">
<button type="button" onclick="edit_cut()">Cut</button>
<button type="button" onclick="edit_copy()">Copy</button>
<button type="button" onclick="edit_paste()">Paste</button>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The current mainstream browser does not support the <menu> tag.

Tag definitions and instructions

<Menu> tag defines a list of commands or menu.

<Menu> tag is generally used for text menus, toolbars and list of command options.

Tips and Notes

Tip: to define the menu list styles using CSS.

Differences between HTML 4.01 and HTML5

HTML 4.01 The <menu> element is deprecated.

HTML5 The <menu> element has been redefined.


New: HTML5 new property.

属性 描述
label New text 描述菜单项的标记。
type New context
描述显示菜单类型. 默认为 "list"。

Global Properties

<menu> tag supports the global attributes, view complete the property sheet HTML Global Attributes .

Event Properties

<menu> tag supports all HTML event attributes .