Accessibility · ARIA

Invalid ARIA attribute value

A toggle button on this page has aria-pressed="yes". The only valid values are true, false and mixed, so its state cannot be read.

How this page is built

The button below has aria-pressed="yes". That attribute accepts only true, false or mixed.

Why it matters

Each ARIA attribute accepts set values. An invalid value is ignored or treated as the default, so assistive technology reports the wrong state. Here a screen reader may announce the button as not pressed while sighted users see it as on.

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-valid-attr-value.

How to fix it

Use one of the allowed values, here aria-pressed="true". Attribute values that point at IDs, such as aria-controls, must also match real IDs.

Back to all tests