Elements must not use ARIA attributes their role prohibits

Some roles forbid certain ARIA attributes, most often naming with `aria-label` or `aria-labelledby` on plain `div`, `span`, `p` or `role="none"`. Remove them or use an element whose role can be named.

Rule IDaria-prohibited-attr
ImpactSerious
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<span class="badge" aria-label="New arrival">NEW</span>

Most screen readers ignore the label and read “NEW”; a few read the label instead, inconsistently.

After
<span class="badge">
  <span aria-hidden="true">NEW</span>
  <span class="visually-hidden">New arrival</span>
</span>

Every screen reader reads “New arrival”.

Why it matters

ARIA forbids names on roles that are not meant to be announced as distinct objects, such as generic containers, paragraphs, emphasis and presentational elements. Browsers and screen readers handle these forbidden labels differently: some ignore them, some read them only in certain modes, and some replace the visible text. The result depends on the user's software, so you cannot predict what a blind user hears.

In practice, developers usually add aria-label to a div or span to give extra information, such as the meaning of a badge, an icon or a price. That information is then lost for many screen reader and braille users, while the author believes it is there. Prohibited states, such as states on a role="none" element, are similarly ignored.

How to fix it

Decide whether the content needs a name at all, then pick a technique that works everywhere.

You want to add text for screen readers. Put it in the content, hidden visually with a CSS utility class:

<span class="price">
  <s>€49</s> €29
  <span class="visually-hidden">reduced from 49 to 29 euros</span>
</span>

The element is really a region or group. Give it a role that accepts a name:

<div role="group" aria-label="Shipping options">…</div>
<section aria-label="Customer reviews">…</section>

The element is really an image or icon. Use role="img" so the label becomes its text alternative:

<span role="img" aria-label="Rated 4 out of 5">★★★★☆</span>

The element is really interactive. Use a button or link, which can be named.

The label adds nothing. Remove it.

Also remove aria-label from elements with role="none" or role="presentation": naming them makes the browser ignore the presentational role.

Checklist

  1. Remove aria-label and aria-labelledby from plain div, span and p elements.
  2. Use visually hidden text for extra screen reader information.
  3. Give named containers a role such as group, region or img.
  4. Do not name elements with role none or presentation.

How the check works

The check compares the ARIA attributes on each element with the attributes its role prohibits, for example naming attributes on generic, paragraph, strong or presentational elements. It fails when a prohibited attribute has a value and the element has no text content. When the element contains text, it is flagged for review, because the label might duplicate that text or be lost.

Resources

Updated October 27, 2026