HTML slt;command> tags
The role of the label is to define the command buttons for HTML.The following tags can be made:
<command type="command" label="Save" onclick="save()">Save</command>
</menu>
Try it out . . .
Browser support
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.
属性 | 值 | 描述 |
---|---|---|
checked New | checked | 规定当页面加载时,command 是否被选中。仅用于 radio 或 checkbox 类型。 |
disabled New | disabled | 规定 command 是否可用。 |
icon New | URL | 规定作为 command 来显示的图像的 URL。 |
label New | text | 必需。规定 command 的名字,对用户可见。 |
radiogroup New | groupname | 规定可进行切换且将被切换的 command 所属的组名。仅在类型为 radio 时使用。 |
type New |
checkbox
command radio |
定义 command 的类型。默认是 "command"。 |
Global properties
The label supports the global properties of HTML.
The event property
The tag supports the event properties of HTML.