Home  >  Article  >  Web Front-end  >  The use and definition of tag in html

The use and definition of tag in html

黄舟
黄舟Original
2017-06-21 09:19:483792browse

The tag in

html5 is used to define the command button. Here is a detailed introduction to the usage of the tag, the tagattributes and the Label application examples.

The role of the tag in #html: Define the command button

Usage of the tag:

The command element represents the command that the user can call. The

tag can define command buttons, such as radio buttons, checkboxes or buttons.

The command element is visible only when it is located within the menu element. Otherwise this element will not be displayed, but it can be used to specify keyboard shortcuts.

Tag application example:

Mark a button:

<menu>
<command onclick="alert(&#39;Hello World&#39;)">
Click Me!</command>
</menu>

What are the attributes of the tag?

H5: Represents new attributes in HTML5.

The use and definition of <command> tag in html

#Which browsers support the tag?

No browser supports the tag. Only Internet Explorer 9 (no earlier or later versions) supports the tag.

Tag definition and usage instructions

Tags can define commands that users may call (such as radio buttons, check boxes, or buttons).

When using the

element, the command element will be displayed as part of the menu or toolbar. However, when using command to specify keyboard shortcuts, the command element can be placed anywhere on the page, but the element will not be visible.

The above is the detailed content of The use and definition of tag in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn