Skip to main content

An element is given a role it cannot have

aria-allowed-role

Some elements are labelled as a type of control they are not allowed to be, which confuses assistive software.

Who this affects

Screen reader users, who are told an element is something it is not.

Fix it in WordPress

Often a div given role="button" or a link given role="button" by a page builder. Use a real button element instead.

What the fix is, technically

Remove the role, or use an element that genuinely matches it.

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