HTML <command> checked Attribute
Example
A pre-selected <command> element:
<menu>
<command type="radio" label="Left" checked
onclick="setAlign('left')">Left</command>
</menu>
Try it Yourself »
Browser Support
Attribute | |||||
---|---|---|---|---|---|
checked | Not supported | Not supported | Not supported | Not supported | Not supported |
Definition and Usage
The checked attribute is a boolean attribute.
When present, it specifies that the command should be checked (pre-selected) when the page loads.
Note: This attribute can only be used if type="checkbox" or type="radio".
Syntax
<command checked>
❮ HTML <command> tag