HTML and CSS Reference
In-Depth Information
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
label=" text
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 attrib-
ute is omitted, the default is merely a list of commands.
Example (HTML5.1 and WHATWG)
<menu type="popup">
<menuitem onclick="cut()" label="Cut">
<menuitem onclick="copy()" label="Copy">
<menuitem onclick="paste()" label="Paste">
<menuitem onclick="delete()" label="Clear">
</menu>
Search WWH ::




Custom Search