Posts in current category

HTML5 <command> tags (abandoned)


May 03, 2021 13:20 HTML5


Table of contents


HTML5 is used to define command buttons.

The following tags can be made:

<menu>
<command type="command" label="Save" onclick="save()">Save</command>
</menu>
Try it out . . .

Browser support

HTML5 <command> tags (abandoned) HTML5 <command> tags (abandoned) HTML5 <command> tags (abandoned) HTML5 <command> tags (abandoned) HTML5 <command> tags (abandoned)

Currently, mainstream browsers do not support the hashtag.

Note: Only IE 9 supports the label, and other previous or later versions of the IE browser do not support the label.


Label definition and instructions for use

The label defines commands that the user might call, such as a turn button, check box, or button.

When you use the element, the command element is displayed as part of a menu or toolbar. However, when you specify keyboard shortcuts with command, the command element can be placed anywhere on the page, but the element is not visible.


The difference between HTML 4.01 and HTML5

The label is the new label in HTML 5.


Property

New: The new property in HTML5.

Property Value Describe
checked New checked Specifies whether command is selected when the page is loaded. Only for radio or checkbox types.
disabled New disabled Specifies whether command is available.
icon New Url Specifies the URL of the image that is displayed as command.
label New text Necessary. Specifies the name of the command, which is visible to the user.
radiogroup New groupname Specifies the group name to which the command can be switched and will be switched. Use only when the type is radio.
type New checkbox
command
radio
Define the type of command. The default is "command".

Global properties

The label supports the global properties of HTML.


The event property

The tag supports the event properties of HTML.