Accessibility · ARIA

aria-roledescription without a role

A div on this page has aria-roledescription="slide" but no role, so assistive technology has no role for the description to replace.

How this page is built

The box below has aria-roledescription="slide". It is a plain div with no implicit or explicit role.

Slide one of three.

Why it matters

aria-roledescription changes how a role is announced, for example “slide” instead of “group”. On an element without a role there is nothing to describe, so the attribute is ignored or announced in a confusing way.

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-roledescription.

How to fix it

Add a suitable role, such as role="group" with a name, or remove the attribute.

Back to all tests