Decorative elements must stay hidden from assistive technology

Elements marked as decorative with role="none", role="presentation" or alt="" should not be focusable or carry global ARIA attributes, or browsers bring their role back. This is a best practice, not a WCAG requirement.

Rule IDpresentation-role-conflict
ImpactMinor
Success criterion Best practice, not a WCAG requirement
Readabler fix Needs a change in the website’s code

Example

Before
<img src="divider-leaves.svg" alt="" aria-label="Decorative divider">

Some screen readers skip it, others announce “Decorative divider, image”, interrupting the reading.

After
<img src="divider-leaves.svg" alt="">

All screen readers skip the divider and continue with the next content.

Why it matters

Marking an element as presentational removes its role, so screen readers skip it. The ARIA specification adds an exception: if the element is focusable or has a global ARIA attribute such as aria-label, aria-describedby or aria-live, browsers must ignore the presentational role and expose the original one. Browsers and screen readers do not all handle this the same way.

The result is an inconsistent experience. One screen reader stays silent, another announces an “image” or “table” the author meant to hide. Keyboard users may land on an element that a screen reader says nothing about. Blind users lose time on noise and can be confused about what is interactive. This is a best practice, not a WCAG requirement, but fixing it makes the page behave the same everywhere.

How to fix it

First decide whether the element is decorative or meaningful, then make the code say one thing.

Truly decorative. Remove global ARIA attributes and anything that makes it focusable:

<!-- before -->
<table role="presentation" aria-describedby="layout-note">…</table>
<!-- after -->
<table role="presentation">…</table>

Focusable by accident. Remove tabindex, or href if the link wraps only decoration. Native controls such as <button> or <a href> are always focusable, so role="none" on them does not work at all.

Actually meaningful. If you added aria-label because the element carries information, it is not decorative. Remove the presentational role and give it a proper name:

<img src="award-2026.svg" alt="Winner, Best Garden Shop 2026">

Need to hide content and keep a label? You cannot have both. Hide it completely with aria-hidden="true" if it must stay out of the accessibility tree. For CSS-only decoration, such as dividers and background patterns, a background image avoids the question altogether.

Checklist

  1. Remove aria-label and other global ARIA from decorative elements.
  2. Remove tabindex from elements marked as presentational.
  3. Never put role="none" on buttons, links or form fields.
  4. Give meaningful elements a real role and name instead.

How the check works

The check looks at <img alt=""> and at elements with role="none" or role="presentation" that would otherwise have a native role. It fails when such an element can receive keyboard focus or has a global ARIA attribute, because browsers then restore its role. It passes when neither is present.

Resources

Updated October 27, 2026