HTML5 Tutorials & More

<command> Tag

The <command> tag defines a command button, like a radiobutton, a checkbox, or a button.

Supported In HTML4: No

Supported In HTML5: Yes

HTML4 vs HTML5 Differences: The <command> tag is new in HTML 5

Attributes

Title Values Description HTML4 Support HTML5 Support
checked checked Defines if the command is checked or not. Use only if type is radio or checkbox. No Yes
disabled disabled Defines if the command is available or not. No No
icon url Defines the url of an image to display as the command. No No
label command name Defines a name for the command. The label is visible. No No
radiogroup name of radiogroup Defines the name of the radiogroup this command belongs to. Use only if type is radio. No No
type checkbox, command, radio Defines the type of command. Default value is command. No No

Standard Attributes

All standard attributes are supported.

Event Attributes

All event attributes are supported.

HTML5 Tags