MDN wants to learn about developers like you:

Type: boolean
Indicates whether the element is checked or not.
Use hasAttribute() to determine whether this attribute is set instead of getAttribute().
For buttons, the type attribute must be set to checkbox or radio for this attribute to have any effect.

Document Tags and Contributors

 Contributors to this page: SphinxKnight, Sheppy, Enn, Marsf, Brettz9, BenoitL, Techrazy, Ptak82, Pmash, Okome, Mgjbot, Dria
 Last updated by: SphinxKnight,