Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

HTML | <menuitem> tag

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The HTML <menuitem> tag is used to define command or menu that the user can utilize from the popup item. this tag is not supported in HTML5. This tag is support Global Attributes in HTML and Event Attributes in HTML.


<menuitem label="" icon="" type> </menuitem>


  • checked: this attribute defines that the menu item is checked when the page load, works on radio and checkbox type.
  • default: This attribute marks the menu item as a default command.
  • disabled: This attribute disabled the menu or command.
  • icon: This attribute define the menu icon by using url.
  • label: This attribute is must required which defines the name of command or menu.
  • radiogroup: This attribute defines the group of command.
  • type: This attribute defines the type of command or menu is it radio, checkbox or anything else.

Below example illustrate the HTML <menuitem> tag: 



<!DOCTYPE html>
    <title>HTML <menuitem> Tag</title>
        h1 {
            color: green;
        <h2>HTML <menuitem> tag</h2>
        <div style="background:green;border:2px solid
                    #black;padding: 10px;" contextmenu="geeks">
<p>A Computer Science Portal for Geeks</p>
            <menu type="context" id="geeks">
                <menu label="Share on...">
                    <menuitem label="Twitter"
"'//' + window.location.href);">
                    <menuitem label="Pinterest"
"'' + window.location.href);">
                <menuitem label="Email This Page"
<p>A Computer Science Portal for Geeks</p>
<p>Right click on green div and see the menuitem



Supported Browsers: The browsers supported by <menuitem> tag are listed below: 

  • Mozilla Firefox


My Personal Notes arrow_drop_up
Last Updated : 25 Nov, 2021
Like Article
Save Article
Similar Reads
Related Tutorials