checked- Type: boolean
- Indicates whether the element is checked or not.
- Use
hasAttribute()to determine whether this attribute is set instead ofgetAttribute(). - For buttons, the
typeattribute must be set tocheckboxorradiofor this attribute to have any effect.
