Favorites

ARIA checkbox Role

checkbox
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

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

Buy us a coffee

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

Syntax

<element role="checkbox">

Example

<!-- Preferred -->
<label><input type="checkbox"> Subscribe</label>

<!-- Custom -->
<span role="checkbox" aria-checked="false" tabindex="0" id="c"
onclick="this.setAttribute('aria-checked',this.getAttribute('aria-checked')!=='true')"
onkeydown="if(event.key===' '){event.preventDefault();this.click();}">Remember me</span>
<style>#c::before{content:"\2610 "}#c[aria-checked=true]::before{content:"\2611 "}</style>

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.

This ARIA role 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