HTML aria-checked ARIA Attribute
The aria-checked attribute gives the checked state of a custom checkbox, radio button, switch or checkable menu item: true, false or mixed.
Description
The aria-checked attribute shows whether a custom checkable control is checked, unchecked or, for checkboxes, partially checked. It is required on the checkbox, radio, switch, menuitemcheckbox and menuitemradio roles, and screen readers announce the state, for example "Email updates, checkbox, checked".
The value has to be changed with JavaScript whenever the user toggles the control. The mixed value is for a checkbox that controls a group where only some items are checked, such as a "Select all" box. On radios and switches, mixed is not valid and is treated as false.
Native form controls report their state automatically, so <input type="checkbox"> and <input type="radio"> never need this attribute. Use the HTML checked attribute and the indeterminate property on those instead.
Properties
- Type
- Widget
- Value
- tristate
- Default
- None
- Used with
checkbox,menuitemcheckbox,menuitemradio,option,radio,switch,treeitem
Syntax
<element role="checkbox" aria-checked="true | false | mixed">
Values
- trueThe control is checked.
- falseThe control is not checked.
- mixedCheckboxes only: some of the items it controls are checked.
- undefinedThe control is not checkable.
Example
Browser Support
The following information will show you the current browser support for the aria-checked ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





