Fandom

HTML & CSS Wiki

Menu

649pages on
this wiki
Add New Page
Comments0 Share

The HTML <menu></menu> element defines a menu list. Though the common implementation of this element is usually the same as an unordered list, the <menu> style should be more compact. The only content of this list structure is the <li> element. As with other list structures, the closing </li> tag is optional in HTML (required in XHTML), as it is implied by the subsequent <li> or end </menu> tags.


Attributes

Attribute Value Description
label label Defines a visible label for the menu.
type list
context
toolbar
Defines which type of menu to display. Default value is list. Other values are context and toolbar.
Global Attributes

See Global HTML Attributes.


HTML example:

<menu>
<li><input type="checkbox" />Red</li>
<li><input type="checkbox" />Blue</li>
</menu>


Image example:

Menu Element

<menu> in Firefox 3.6.10


See Also

External Links

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.