![]() |
VOOZH | about |
The checked attribute is used to preselect a checkbox or radio button when a webpage loads. It helps in setting default choices in forms.
Syntax:
<input type = "checkbox|radio" checked> Example: The first checkbox is checked by default using checked, while the second checkbox is unchecked by default.