HTML <menuitem> tag
You are Here:
HTML <menuitem> tag
The <menuitem>
tag defines a command/menu item that the user can invoke from a popup menu.
Warning: The <menuitem>
tag is deprecated and is no longer recommended.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<menu type="context" id="popup-menu">
<menuitem type="checkbox" icon="/image/checked.png" checked>Checkbox
<menuitem type="checkbox" icon="/image/copy.png">Copy
</menu>
</body>
</html>
Attributes
Attribute | Value | Explanation |
---|---|---|
checked | - | Specifies whether the command is selected. |
command | element_id | Specifies a command to be invoked indirectly. |
default | - | Specifies the use of the same command as the menu's subject element such as button, input.. |
disabled | - | Specifies that menuitem is not available for user. |
icon | URL | Specifies the path/location to the image which is used to represent the icon. |
label | text | Specifies the name of the command as shown to the user. Mandatory when command attribute is not used. |
radiogroup | text | Specifies the name of a group of commands to be toggled as radio buttons when selected. |
type |
| Specifies the type of the command. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.