ARIA checkbox Role Example: Mixed state checkbox

More information on Checkbox pattern

Checkbox example with fieldset and legend: used "label for"

Sandwich Condiments

Accessibility Feature

Keyboard Support

Key Function
Tab Moves keyboard focus to checkbox.
Space Toggle the checkbox option either true, false or mixed. False is the default.

ARIA Roles, Properties and States

Role Property/State Usage
checkbox Identify div as Checkbox widget
aria-checked Indicate state of checkbox:
  • Checked (e.g. aria-checked=true)
  • Unchecked (e.g. aria-checked=false)
  • Mixed (e.g. aria-checked=mixed)
aria-labelledby Used to include grouping label in the label of each checkbox

Source Code