ARIA checkbox Role
The checkbox role marks a custom control that can be checked, unchecked or partly checked. A native input with type checkbox has this role and needs no ARIA.
Description
The checkbox role identifies a checkable input with three possible states: checked, unchecked and, optionally, mixed. Screen readers announce it as "checkbox" along with its state, which comes from the required aria-checked attribute.
Native <input type="checkbox"> has this role and handles focus, the Space key, form submission and the checked state on its own, so it is almost always the better choice. A custom checkbox must be focusable with tabindex="0", toggle on Space and update aria-checked on every change.
A group of related checkboxes should be wrapped in a <fieldset> with a <legend>, or an element with the group role and a label.
Use the native HTML <input> element where you can: it already has the checkbox role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Widget
- HTML equivalent
<input>- Accessible name from
- contents, author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
aria-checked- Supported
aria-errormessage,aria-expanded,aria-invalid,aria-readonly,aria-required- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="checkbox">
Example
Browser Support
The following information will show you the current browser support for the checkbox ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





