HTML <menuitem> type Attribute Last Updated : 01 Aug, 2024 Comments Improve Suggest changes Like Article Like Report The type attribute in <menuitem> tag is used to define the type of commands of the menuitems. Syntax:<menuitem type="command|checkbox|radio">Attribute Values:command: It has a Default value. It defines a standard order with an actioncheckbox: It defines a command that can be toggled using a checkboxradio: It defines a command that can be toggled using a radio buttonNote: This attribute is depreciated from HTML 5.Example: Below HTML code demonstrates the use of type attribute in <menuitem> element. HTML <!DOCTYPE html> <html> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h2>HTML <menuitem> type attribute</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="menuID"> <menu label="Share on..."> <menuitem label="Twitter" type="command" onclick= "window.open('//twitter.com/intent/tweet?text='+ window.location.href);"> </menuitem> <menuitem label="Pinterest" type="command" onclick= "window.open('http://pinterest.com/pin/create/button/?url='+ window.location.href);"> </menuitem> </menu> <menuitem label="Email This Page" type="command" onclick= "window.location='mailto:?body='+ window.location.href;"> </menuitem> </menu> </div> <p>A Computer Science Portal for Geeks</p> <hr> <p>Right click on green div and see the menuitem </center> </body> </html> Output:HTML type AttributeSupported Browser:Mozilla Firefox Comment More infoAdvertise with us Next Article HTML <menuitem> type Attribute H hritikbhatnagar2182 Follow Improve Article Tags : HTML HTML-Attributes Similar Reads HTML <menu> type Attribute The type attribute in <menu> element is used to define the type of menu bar. It is also used with the <menuitem> tag which defines the type of commands of the menu items. Syntax: <menu type="list|context|toolbar">Note: This attribute has been deprecated and is no longer used. Attr 1 min read HTML <style> type Attribute HTML <style> type Attribute is used to specify the MIME type of the <style> Tag. The attribute is used to identify the type of content contained by the <style> Tag. The default value is "text/css" which indicates that the content is CSS. Syntax: <style type="media_type"> Not 1 min read HTML <menuitem> icon Attribute The HTML <menuitem> icon Attribute is used to define the pictorial representation of the menu command or menu item. It contains the URL of a specified image. Syntax: <menuitem icon="URL">Attribute Values: It contains a single value URL that specifies an icon for a particular menu item. T 1 min read HTML | <script> type Attribute The HTML <script> type Attribute is used to specify the MIME type of script and identify the content of the Tag. It has a Default value which is âtext/javascriptâ. Syntax: <script type="media_type"> Attribute Values: It contains a single value i.e media_type which specifies the MIME type 1 min read HTML | <object> type Attribute The HTML <object> type Attribute is used to specify the Internet type of MIME type of the Object. Syntax: <object type="media_type"> Attribute Values media_type It is used to specify the Internet media type of the embedded file. Example: html <!DOCTYPE html> <html> <body 1 min read Like