Easy Tutorial
❮ Att Area Hreflang Tag Style ❯

HTML <command> Tag

Example

The <command> tag can be marked as follows:


Browser Support

Currently, none of the major browsers support the <command> tag.

Note: Only IE 9 supports the <command> tag; other versions of IE, both earlier and later, do not support the <command> tag.


Tag Definition and Usage

The <command> tag defines a command that a user might invoke (such as a radio button, checkbox, or button).

When using the <menu> element, the command element is displayed as part of a menu or toolbar. However, when specifying a keyboard shortcut with command, the element can be placed anywhere on the page, but it is not visible.


Differences Between HTML 4.01 and HTML5

The <command> tag is new in HTML 5.


Attributes

Attribute Value Description
checked New checked Specifies whether the command is checked when the page loads. Only used for radio or checkbox types.
disabled New disabled Specifies whether the command is available.
icon New URL Specifies the URL of an image to be displayed as the command.
label New text Required. Specifies the name of the command that is visible to the user.
radiogroup New groupname Specifies the name of the group of commands that will be toggled when the command itself is toggled. Only used for radio types.
type New checkbox <br>command <br>radio Defines the type of the command. The default is "command".

Global Attributes

The <command> tag supports HTML's global attributes.


Event Attributes

The <command> tag supports HTML's event attributes.

❮ Att Area Hreflang Tag Style ❯