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

❮ HTML <menuitem> tag

Example

A default <menuitem> element:

<menu>
<menuitem command="submitbutton" default>
</menu>

Definition and Usage

The default attribute is a boolean attribute.

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


Browser Support

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

Attribute
default Not supported Not supported Not supported Not supported Not supported

Syntax

<menuitem default>

❮ HTML <menuitem> tag