HTML5 command label usage and <command> label use case

Source: Internet
Author: User
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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.