Skip to main content

ARIA attributes on elements that cannot have them

aria-prohibited-attr

Some elements carry accessibility attributes that are not permitted for what they are, so the attributes are ignored.

Who this affects

Screen reader users, who lose the label the author intended to provide.

Fix it in WordPress

Typically an aria-label added to a plain div or span. Put the text inside the element instead.

What the fix is, technically

Move the label onto an element that supports it, or change the element's role.

Does your site have this problem?

Scan any page free and find out in about fifteen seconds. No signup, and nothing about your site is stored.

Check my page

Other common failures