ARIA roles should be appropriate for the element
HTML elements only accept certain ARIA roles. Give each element a role that fits its native meaning, or choose a different element. This is a best practice, not a WCAG requirement.
| Rule ID | aria-allowed-role |
|---|---|
| Impact | Minor |
| Success criterion | Best practice, not a WCAG requirement |
| Needs a change in the website’s code |
Example
<ul role="navigation">
<li><a href="/men">Men</a></li>
<li><a href="/women">Women</a></li>
</ul>The list semantics are lost: a screen reader no longer says “list, 2 items”.
<nav aria-label="Departments">
<ul>
<li><a href="/men">Men</a></li>
<li><a href="/women">Women</a></li>
</ul>
</nav>A screen reader announces a “Departments navigation” landmark containing a list of 2 items.
Why it matters
A role replaces the meaning the browser gives an element. When the new role clashes with the element, users of screen readers get a mixed message: a heading that behaves like a button, or a list that loses its item count. Browsers and assistive technologies may also handle the conflict differently, so the same page can sound different in each combination.
The element's built-in behaviour does not change with the role. A text input given role="button" still accepts typing, while the screen reader tells the user it is a button. Keyboard users and blind users then try interactions that do not work.
This is a best practice rather than a WCAG requirement, but fixing it usually removes real confusion and makes the code easier to maintain.
How to fix it
Use the element that already has the meaning you need, and keep ARIA roles for cases HTML cannot cover.
You need a landmark or structure. Wrap content in the matching element instead of overriding another one:
<nav aria-label="Departments">
<ul>…</ul>
</nav>
You need a control. Use the native control rather than restyling another element:
<!-- Instead of <input type="text" role="button" value="Search"> -->
<button type="submit">Search</button>
You need a composite widget. Apply the role to a neutral container such as div or span, which accept almost any role:
<div role="tablist" aria-label="Product details">…</div>
You only want to remove semantics. Most elements accept role="none" or role="presentation", for example a layout table. Never do this on focusable elements.
To find out which roles an element accepts, consult the “ARIA in HTML” table maintained by the W3C.
Checklist
- Use native elements for landmarks, headings, lists and controls.
- Put custom widget roles on div or span, not on semantic elements.
- Do not give form inputs a different interactive role.
- Check the element's allowed roles before adding role.
How the check works
The check looks at every element with a role attribute, including hidden ones, and compares the role with the roles HTML allows for that element. It fails when the role is not allowed. If the element is hidden from assistive technology, the result is marked for review instead. Repeating the element's implicit role, such as role="button" on a button, passes.
Resources
- Read me first: no ARIA is better than bad ARIA ARIA Authoring Practices Guide
- Hiding semantics with the presentation role ARIA Authoring Practices Guide
- WAI-ARIA 1.2 specification W3C
Updated October 27, 2026