Accessibility · ARIA

Required ARIA attribute missing

A custom checkbox on this page has role="checkbox" but no aria-checked attribute, so screen readers cannot say whether it is checked.

How this page is built

The control below has role="checkbox" and a label, but no aria-checked. That attribute is required for the checkbox role.

Email me updates

Why it matters

Some roles need certain attributes to work: a checkbox needs aria-checked, a slider needs aria-valuenow and a heading role is clearer with aria-level. Without them, assistive technology cannot report the control’s state.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule aria-required-attr.

How to fix it

Add the missing attribute and update it with script when the state changes. A native <input type="checkbox"> does this for you.

Back to all tests