Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

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