HTML checked attribute
Example
A pre-selected
Try it »
Browser support





Currently, almost all major browsers do not support the checked attribute.
Definition and Usage
The checked attribute is a boolean attribute.
The checked attribute specifies that the command element should be pre-selected when the page loads.
**Note:** This attribute can only be used when the command type is set to checkbox or radio, that is, only when type="checkbox" or type="radio".
Differences between HTML 4.01 and HTML5
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden; the checked attribute must be defined as
Syntax
HTML