VOOZH about

URL: https://www.geeksforgeeks.org/html/html-menuitem-type-attribute/

⇱ HTML <menuitem> type Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <menuitem> type Attribute

Last Updated : 23 Jul, 2025

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 action
  • checkbox: It defines a command that can be toggled using a checkbox
  • radio: It defines  a command that can be toggled using a radio button

Note: This attribute is depreciated from HTML 5.

Example: Below HTML code demonstrates the use of type attribute in <menuitem> element. 

Output:

👁 HTML <menuitem> type Attribute
HTML type Attribute

Supported Browser:

  • Mozilla Firefox
Comment
Article Tags:
Article Tags: