HTML <menuitem> tag

Updated: 10/11/2017 by Computer Hope

HTML menuitem tagWhen writing in HTML, the <menuitem> tag is used to designate a command that a user can invoke via a popup menu. It is nested within the <menu> element. Because this tag is experimental and only supported by Firefox, information is limited.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the <menuitem> tag, as well as a description of each.

Attribute Description
checked Designates that the command item should be checked off upon the page loading
default Designates a menu item and a default command
disabled Designates that a menu item be disabled
icon Designates an icon for the command
label Creates a label for the <menuitem> element (required)
radiogroup Designates the name of the group of commands to be toggled upon command execution
type Designates the type of menu item or command

Compatibility

Internet Explorer Firefox Safari Opera Chrome
Not supported 8.0+ Not supported Not supported Not supported

Browser, Compatibility, Nesting, Toolbar, URL, Web design terms