Start scanning free

( Robust / WCAG 4.1.2 )

ARIA attribute is prohibited for this role

This check maps to Name, Role, Value. Use the guidance below to confirm the issue, understand who it affects and ship a fix.

Serious Level A WCAG 4.1.2 — Name, Role, Value

What’s wrong

An ARIA attribute is set on an element whose implicit or explicit role explicitly prohibits it, for example aria-label on a generic <span> with no role, which native semantics already forbid.

Why it matters

Browsers ignore prohibited attributes, so the label or state you thought you set never reaches assistive tech at all.

How to fix it

Remove the attribute, or give the element a role that supports it.

Before
<span aria-label="Close">×</span>
After
<button aria-label="Close">×</button>

Learn more