HTML <command> (Command) Tag
Example
<menu>
<command type="checklist" label="Check List">Check List</command>
</menu>
Meaning
The <command> is HTML5 element represents a command a user can invoke and is found within a <menu> element.
Commands may be simple actions or toggles among various states or options.
Note: It's currently in extremely raw form and without implementations its usage should be considered speculative.
Note: <command> tag support only Internet Explorer 9.
Version: HTML5
Standard Syntax
<command>...</command>
Browser Support
Status
Attributes
Attribute | Value | Description |
---|---|---|
type | command checkbox radio |
Defined type of command. |
checked | empty string checked |
Define the command is checked when first time load. |
label | name | Define the command name. |
icon | url | Define the command like image icon attach. |
radiogroup | name | Define the command name radio group. |
Global Attributes
The <command> element also supports the Global Attributes in HTML.
Event Attributes
The <command> element also supports the Event Attributes in HTML.