menu
<menu> . . . </menu>
Represents a list of interactive options or commands such as a menu of
options in a web application. When the menu
is a
pop-up menu, its contents are one or more menuitem
elements. In the HTML5 Candidate Recommendation, an option in a
menu
is provided by the command
element, but the more forward looking HTML5.1 draft and the living
WHATWG specification have replaced command
with
menuitem
.
In HTML 4.01, the deprecated menu
element
indicates a menu list, which consists of one or more list items
(li
). Menus were intended for a list of short
choices, such as a menu of links to other documents.
Flow content; if the type
element is in
the toolbar state, then palpable content.
Where flow content is expected. If the
type=popup
, then as the child of a
menu
element that is in the pop-up
state.
If type=toolbar
, flow content or zero
or more li
elements. If
type=popup
, zero or more
menuitem
elements, zero or more
hr
elements, and zero or more
menu
elements with
type=popup
.
Required/Required
HTML5 Global Attributes
label="
text
"
Not in HTML 4.01. Specifies a label for the menu, which can be displayed in nested menus.
type="popup|toolbar"
Not in HTML 4.01.
Identifies the kind of menu being declared. popup
indicates a pop-up menu or a menu for a button
with its type set to
menu
in a form. toolbar
indicates the menu is to be used as a toolbar that can be
interacted with immediately. If the type
attribute is omitted, the default is merely a list of
commands.