HTML menuitem tag

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 optionsDescription
1typeSpecify the type of menu to display. The values for this attribute are radio,command and checkbox
2labelThis specified the label of the menu.
3defaultThis specified the menu item as a default menu. Its value is default
4checkedThis specified the menu item, whether it is selected or not.
5disabledThis specified the menu item, whether it is disabled or not.
6iconThis specified the menu item icon. The value for this is a URL
7radiogroupThis 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

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.