This article focuses on the definition and usage of the HTML5 command tag, as well as the use case for the HTML5 command tag, although the <command> tag is not supported by most mainstream browsers, Can be a small part of the label still have some useful, read this article, say your idea Bai
Definition and usage of the HTML5 command tag:
The command element represents the commands that the user can invoke.
<command> tags can define command buttons, such as radio buttons, checkboxes, or buttons.
This element is visible only if the command element is inside a menu element. Otherwise, this element is not displayed, but it can be used to specify keyboard shortcuts.
HTML5 <command> Tag Examples
The <command> can be labeled as follows:
<menu><command type= "command" label= "Save" onclick= "Save ()" >Save</command></menu>
html5< command> Label use case detailed:
In HTML5,,<command> tags are used to represent commands that a user can invoke, and you can define command buttons, such as radio buttons, checkboxes, or buttons. The <command> tag is visible in the <menu> meta tag, and it can also prescribe keyboard shortcuts. The <command> tag is a new tag in HTML 5 and is currently only supported in IE 9.
HTML5 the properties of the command tag:
Checked: command is selected when the page is loaded.
Disabled:command is available.
Icon: The URL of the image to display as a command.
Radiogroup: The group name to which the command that can be toggled and will be switched belongs.
The type of Type:command.
<command> tags support HTML global properties and HTML event properties
HTML5 standard properties of the command tag
The <command> tag supports standard properties in HTML 5.
HTML5 Command label format:
<menu><command > Content </command></menu>
HTML5 Command Label case:
<!doctype html>
Browser support:
No browser support <command> tags.
Support <command> tags are only available for Internet Explorer 9 (not supported by earlier or later versions).
Differences between HTML 4.01 and HTML 5
The <command> tag is a new label in HTML 5.
This article ends here, I hope everyone can learn what they want to learn, although the number of words, but can make up ah, come on
"Good for a short stay"
What is an HTML table table? How to use various attributes in <table> tags
What is the color attribute of the HTML font tag? Introduction to the usage of fontcolor (color code table)