HTML and CSS Reference
In-Depth Information
Name
menuitem
Synopsis
<menuitem> (XHTML: <menuitem/> or <menuitem /> )
Not in HTML 4.01 . WHATWG and HTML5.1 only . Represents a command that can be
chosen from a pop-up menu.
Usage
Categories:
None
Permitted contexts:
As a child of a menu element whose type attribute is in the pop-up menu state
Permitted content:
Empty
Start/end tags:
This is an empty (void) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash ( <menuitem/> or <menuitem /> ).
Attributes
HTML5 Global Attributes
checked ( checked="checked" in XHTML)
Indicates that the command is selected. May be used only when type is set to checkbox or
radio .
Search WWH ::




Custom Search