aria-checked
TristateCommunicates the checked state of a checkbox, radio button, switch, or checkable menu item. It is tri-state — true, false, or mixed — where 'mixed' represents a partially checked parent checkbox. Native form controls expose this automatically; you set it by hand only on custom widgets built from generic elements.
Values
- true
- The element is checked.
- false
- The element is not checked.
- mixed
- A partially checked (indeterminate) state, for tri-state checkboxes.
- undefined (default)
- The element does not support being checked.
Used on
<input type="checkbox"><input type="radio">
Associated roles
Example
aria-checked="…"
<span role="checkbox" aria-checked="mixed" tabindex="0">
Select all
</span>References