Language: EN

Invalid ARIA attribute values

Message shown by axe and Lighthouse: ARIA attributes must conform to valid values · aria-valid-attr-value · WCAG 4.1.2

What it means and why it matters

Wrong ARIA values (e.g. a broken aria-controls reference) give assistive technology false information (WCAG 4.1.2).

How to fix it

Correct the value or remove the attribute; references must point to existing IDs.

Code example

Before

<button aria-expanded="yes" aria-controls="menu-main">Menu</button>

After

<button aria-expanded="false" aria-controls="main-menu">Menu</button>
<ul id="main-menu" hidden>…</ul>

Find this error on your website

Run a free check of any page — results in seconds, with fix instructions.

Check a page for free

All accessibility errors

Order a paid plan

Leave your email and we'll contact you as soon as the plan can be ordered.