aria-checked

An ARIA state giving the checked state of a checkbox, radio button or switch: true, false or, for checkboxes, mixed.

In more detail

Custom switches built from a <button> must set it and update it on every toggle, otherwise screen readers cannot tell whether the setting is on. Native checkboxes and radio buttons expose their checked state automatically, so this is only needed on custom controls.

Related terms

Taught in

References