The checked attribute in HTML is used to indicate whether an element should be checked when the page loads up. It is a Boolean attribute.
Note: It can be used with <input> element only where type is either “checkbox” or “radio”.
<input type = "checkbox|radio" checked>
Supported Browsers: The browser supported by checked attribute are listed below:
- Google Chrome 1.0
- Internet Explorer 2.0
- Firefox 1.0
- Opera 1.0
- Apple Safari 1.0
- HTML | <input>checked Attribute
- HTML | DOM Input Checkbox checked Property
- HTML | DOM Input Radio checked Property
- How to read if a checkbox is checked in PHP?
- CSS | :checked Selector
- jQuery | :checked Selector
- AngularJS | ng-checked Directive
- How to check whether a checkbox is checked in jQuery?
- Alternative of ng-checked to get the checkbox's state in AngularJS
- How to set radio button checked by button click in AngularJS ?
- How to set checkbox checked on button click in AngularJS ?
- How to change the “checked” background color of toggle switch in Bootstrap 4?
- HTML | <html> xmlns Attribute
- HTML | scoped Attribute
- HTML | <th> valign Attribute
- HTML | <col> align Attribute
- HTML | poster Attribute
- HTML | Class Attribute
- HTML | style attribute
- HTML | oninvalid Event Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.