
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML - <menuitem> tag
Description
The HTML <menuitem> tag is used for defining a menu item for a menu.
Example
<!Doctype html> <html> <head> <title>HTML menuitem Tag</title> </head> <body> <div style = "border:1px solid #000; padding:20px;" contextmenu = "clickmenu"> <p>Right click inside here....</p> <menu type = "context" id = "clickmenu"> <menuitem label = "Tutorialspoint" onclick = ""></menuitem> </menu> </div> </body> </html>
This will produce the following result in Firefox browser only −
Global Attributes
This tag supports all the global attributes described in − HTML Attribute Reference
Specific Attributes
The HTML <menuitem> tag also supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
checked ![]() |
checked | defines that a menuitem should be checked |
command ![]() |
||
default ![]() |
default | a menuitem is marked as a default command |
disabled ![]() |
disabled | disables a menuitem and cannot be clicked |
icon ![]() |
url | defines an icon for a menuitem |
label ![]() |
text | defines a name for a menuitem which is displayed to the user |
radiogroup ![]() |
groupname | defiens a group of commands out of which only one can be selected |
type ![]() |
checkbox command radio |
defines type of command for a menuitem default is command |
Event Attributes
This tag supports all the event attributes described in − HTML Events Reference
Browser Support
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
No | Yes | No | No | No | No |
html_tags_reference.htm
Advertisements