Favorites

HTML aria-checked ARIA Attribute

aria-checked
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-checked attribute gives the checked state of a custom checkbox, radio button, switch or checkable menu item: true, false or mixed.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<span role="checkbox" aria-checked="false" tabindex="0" id="cb"
style="cursor:pointer;user-select:none">&#9744; Email updates</span>
<script>
var cb = document.getElementById('cb');
function toggle() {
var on = cb.getAttribute('aria-checked') !== 'true';
cb.setAttribute('aria-checked', on);
cb.innerHTML = (on ? '&#9745;' : '&#9744;') + ' Email updates';
}
cb.addEventListener('click', toggle);
cb.addEventListener('keydown', function (e) { if (e.key === ' ') { e.preventDefault(); toggle(); } });
</script>

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.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee