THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <menuitem> default Attribute

HTML menuitem Tag Reference 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

Differences Between HTML 4.01 and HTML5

The <menuitem> tag is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the default attribute must be defined as <menuitem default="default">.


Syntax

<menuitem default>

HTML menuitem Tag Reference HTML <menuitem> tag