ARIA States & Properties
aria-checked
Reports whether a checkable widget is checked, unchecked, or partially checked. Mixed applies only to roles supporting tri-state behavior; not radio or switch. Keep this in sync with the real state. Native checkbox checked and indeterminate properties are preferable where applicable. Value type: tristate. Accepted values: true, false, mixed, undefined. Default or omitted behavior: role dependent. Applicable context: checkbox, switch, radio, menuitemcheckbox, menuitemradio, supported option roles. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-checked="false"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-checked | tristate | Accepted values: true, false, mixed, undefined. Default or omitted behavior: role dependent. Context: checkbox, switch, radio, menuitemcheckbox, menuitemradio, supported option roles. Requiredness depends on the role. |
Working Example
Example Snippethtml
<button role="switch" aria-checked="false" onclick="this.setAttribute('aria-checked',String(this.getAttribute('aria-checked')!=='true'))">Notifications</button>