checked Attribute
checked attribute defines an input element should be preselected when the page loads. It can be used with the <input> tag.
Example:
<form>
<input type="checkbox" value="cse" checked>CSE
<input type="checkbox" value="eee">EEE
<input type="checkbox" value="civil">Civil
<input type="submit" value="submit">
</form>
Run Example
Browser Support
Attribute |
Firefox |
Chrome |
IE |
Opera |
Safari |
checked |
1.0 |
1.0 |
2.0 |
1.0 |
1.0 |