Description:

The HTML <command> tag is used for specifying a command that the user can invoke.

A command can be part of a context menu or toolbar, using the <menu> element, or can be put anywhere else in the page, to define a keyboard shortcut.

Example Code:
<menu>
<command type="command" label="Save">Save</command>
</menu>
Attributes:
Attribute Definition
checked Specifies that the command should be checked when the page loads. Only for type="radio" or type="checkbox"
disabled Specifies that the command should be disabled
icon Specifies an image that represents the command
label Required. Specifies the name of the command, as shown to the user
radiogroup Specifies the name of the group of commands that will be toggled when the command itself is toggled. Only for type="radio"
type Specifies the type of command
Global Attributes:

The <command> tag also supports the Global Attributes in HTML5

Event Attributes:

The <command> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.