Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

HTML <menuitem> disabled Attribute

❮ HTML <menuitem> tag

Example

A disabled <menuitem> element:

<menu type="context" id="mymenu">
  <menuitem label="Refresh" icon="ico_reload.png" disabled></menuitem>
  <menuitem label="Twitter" icon="ico_twitter.png"></menuitem>
  <menuitem label="Facebook" icon="ico_facebook.png"></menuitem>
</menu>
Try it Yourself »

Definition and Usage

The disabled attribute is a boolean attribute.

When present, it specifies that the <menuitem> element should be disabled.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
disabled Not supported Not supported 8.0 Not supported Not supported

Syntax

<menuitem disabled>

❮ HTML <menuitem> tag