The checkbox role
Semantics
A checkable input that has three possible values: true, false, or mixed.
Abstract Role
WidgetRepresents a focusable, interactive element.
Content Category
Phrasing ContentAn element that typically appears inline and provides semantic meaning to text content.
Allowed Descendants
Phrasing Children Allowed
No interactive content descendants, and no descendants with a tabindex attribute specified.
Note
Children Become Presentational
Browsers automatically apply the presentation
role to all descendant elements, so their semantics are not conveyed to assistive technologies.
Usage
Elements that can designate the role in HTML:
input[type=checkbox]
a[href][role=checkbox]
button[role=checkbox]
img[role=checkbox]
span[role=checkbox]
custom-element[role=checkbox]