HTML menuitem tag

Last Updated on April 26, 2023 by Roshan Parihar

HTML menuitem tag is used to a specify a list of commands.

These menus of commands come under HTML menu tag and should be performed by the user.


Syntax

Output

How to show HTML menuitem in HTML

These commands can be seen by right click on the image. Select your option and look up the changes.

The example works only in Firefox.

List of HTML menuitem tag attributes


Sr. No. Attribute options Description
1 type Specify the type of menu to display. The values for this attribute are radio,command and checkbox
2 label This specified the label of the menu.
3 default This specified the menu item as a default menu. Its value is default
4 checked This specified the menu item, whether it is selected or not.
5 disabled This specified the menu item, whether it is disabled or not.
6 icon This specified the menu item icon. The value for this is a URL
7 radiogroup This specified the menu item name of the group of commands that will be toggled. This toggled when the command is toggle. This only work for the type radio group.

Resources and References

1.W3C project using Github