HTML <command> Tag
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Description
The <command> HTML element represents a command which the user can invoke. Commands are often used as part of a context menu or toolbar. However, they can be used anywhere on the page.
Properties
- Permitted Parents
- -
- Content
- Any block, inline and text
- Start/End Tags
- Start tag: required, End tag: forbidden
Example
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
Browser Support
The following information will show you the current browser support for the HTML <command> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
Browser support for this tag is currently unknown.
Desktop
Tablets & Mobile
-
Last updated by CSSPortal on: 6th December 2019
Sponsors
Copy Paste List
Copy and paste or download lists in your preferred format, including plain text, PDF, or HTML.
Unicode Characters & Emojis
Search all Unicode characters and emojis plus other tools.
Check Shortened URLs
Expand shortened URLs to view the destination link.
Advertise Here
Advertise your company and products here!
