HTML command label attribute
Examples
A label with the <command> element:
<menu>
<command type="command" label="Save changes"
onclick="save()">Save</command>
</menu>
<command type="command" label="Save changes"
onclick="save()">Save</command>
</menu>
try it"
Browser Support
Currently, almost all the major browsers do not support the label property.
Definition and Usage
label Required attributes specified command name, for presentation to the user.
Differences between HTML 4.01 and HTML5
<Command> tag is new in HTML5 tags.
grammar
<command label="text">
Property Value
值 | 描述 |
---|---|
text | 规定 command 的可见标签。 |
HTML <command> tag