The HTML5 command Tag
The HTML5 <command> tag is used for specifying a particular command that can be managed by the user. This includes a radiobutton, checkbox or command button. The commands that can be placed could be, but is not limited to, toolbar or context menu, a part of the <menu> element or a specification for a keyboards shortcut.
The HTML5 <command> tag is a new addition in HTML5 so this is not seen in HTML4.01. In addition, it is also not supported even by the major web browsers these days like Firefox, Safari, Internet Explorer and Google Chrome.
The HTML5 <command> tag is also compatible with the Global Attributes and Event Attributes in HTML5.
The attributes for HTML5 <command> tag are the following:
Attribute |
Value |
Description |
checked |
checked |
Set if command should be checked |
disabled |
disabled |
Sets command to enabled or diabled |
icon |
URL |
Sets image of the command |
label |
text |
Sets name of the command |
radiogroup |
groupname |
Set group of the command |
type |
checkbox |
Sets the type of command |
It has to be noted that these attributes are all new since HTML5 <command> tag is not present in HTML4.01.