Posts in current category
May 03, 2021 13:20 HTML5
HTML5 is used to define command buttons.
The following tags can be made:
Try it out . . .
<menu> <command type="command" label="Save" onclick="save()">Save</command> </menu>
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.
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 label is the new label in HTML 5.
New: The new property in HTML5.
|checked New||checked||Specifies whether command is selected when the page is loaded. Only for radio or checkbox types.|
|disabled New||disabled||Specifies whether command is available.|
|icon New||Url||Specifies the URL of the image that is displayed as command.|
|label New||text||Necessary. Specifies the name of the command, which is visible to the user.|
|radiogroup New||groupname||Specifies the group name to which the command can be switched and will be switched. Use only when the type is radio.|
|Define the type of command. The default is "command".|
The label supports the global properties of HTML.
The tag supports the event properties of HTML.