Accessibility · ARIA

Presentation role conflict

A decorative image on this page has an empty alt, which makes it presentational, but it also has tabindex="0", so browsers must keep its image role.

How this page is built

The test card below has alt="", which marks it as decorative and gives it the presentation role. It also has tabindex="0", so it takes keyboard focus.

Why it matters

Role presentation, or role none, tells screen readers to ignore what an element is. But if the element also has a global ARIA attribute, or can take focus, the browser must drop that role. So the page does the opposite of what the author asked for.

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 presentation-role-conflict.

How to fix it

Remove the conflicting attribute, or drop the presentation role if the element’s meaning should stay.

Back to all tests