HTML - <menuitem> tag


The HTML <menuitem> tag is used for defining a menu item for a menu.


<!Doctype html>

      <title>HTML menuitem Tag</title>


      <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>


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 HTML-5 checked defines that a menuitem should be checked
command HTML-5
default HTML-5 default a menuitem is marked as a default command
disabled HTML-5 disabled disables a menuitem and cannot be clicked
icon HTML-5 url defines an icon for a menuitem
label HTML-5 text defines a name for a menuitem which is displayed to the user
radiogroup HTML-5 groupname defiens a group of commands out of which only one can be selected
type HTML-5




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