WAI-ARIA: the basics for accessible websites
WAI-ARIA is a W3C standard that lets developers give websites additional information for screen readers and other assistive technologies. Used correctly, ARIA makes complex controls accessible. Used incorrectly, it creates new barriers. Learn the basics, the rules and the most important attributes.
The key facts at a glance
WAI-ARIA – the key facts
ARIA adds roles, states and properties to HTML. These four points are worth knowing.
-
Current version: WAI-ARIA 1.2, W3C Recommendation since 6 June 2023
-
ARIA changes only what is announced, not the behavior
-
First rule: native HTML before ARIA
-
In 2026, pages with ARIA had more errors on average
What is WAI-ARIA?
WAI-ARIA stands for Web Accessibility Initiative – Accessible Rich Internet Applications. The standard defines attributes that give HTML elements a role (such as role="tab"), a state (aria-expanded="true") or a property (aria-label="Search"). Browsers add this information to the accessibility tree, which screen readers read from.
ARIA was created for controls that HTML does not know natively, such as tabs, tree views or live messages. Since HTML5, many elements exist natively, for example nav, main, button or dialog. That is why ARIA today is mainly a tool for custom components.
Important: ARIA only changes what assistive technologies announce. A div with role="button" sounds like a button to the screen reader, but without additional code it can neither be reached with Tab nor triggered with Enter.
The most important ARIA attributes
You will come across these attributes in almost every project. Each has a clear purpose.
-
aria-label: gives an element a name, such as “Search” for a magnifier button
-
aria-labelledby and aria-describedby: point to visible text as name or description, such as a password hint
-
aria-expanded: reports whether a menu or accordion is open
-
aria-hidden="true": hides purely decorative elements from screen readers
The rules for using ARIA
The W3C formulated rules for using ARIA in the document “Using ARIA”. In addition, every interactive element needs an accessible name. The four most important rules:
1. Native HTML first
If there is an HTML element with the required meaning and behavior, use it. A button is better than a div with role="button".
2. Do not override semantics
Do not change native semantics unless you really have to, such as turning a heading into a tab with role="tab". Use the appropriate element instead.
3. Operable by keyboard
All interactive ARIA controls must work with the keyboard. If you set role="button", you must also implement Tab, Enter and Space.
4. Never hide focusable elements
No aria-hidden="true" and no role="presentation" on focusable elements. Otherwise users land on an element that does not exist for them.
Common ARIA mistakes
The WebAIM Million 2026 found more than 133 ARIA attributes per home page. Pages with ARIA had 59.1 detected errors on average, pages without ARIA 42. WebAIM points out that ARIA does not necessarily cause these errors, as such pages are often more complex. Common patterns:
-
aria-label on elements without a suitable role, such as a plain div
-
aria-hidden="true" on links or buttons
-
role="button" without keyboard support
-
aria-label that differs from the visible text (WCAG 2.5.3)
Checking and testing ARIA
Automated checks show only partly whether ARIA is used correctly. They detect invalid roles, unknown attributes or aria-hidden on focusable elements. Only a human can judge whether an announcement makes sense.
-
Automated: invalid roles and attributes, hidden focusable elements
-
Developer tools: name, role and state per element
-
Screen reader: check announcements in context
Open the accessibility view in your browser’s developer tools: there you see the name, role and state of each element as the screen reader receives them. Complement the test with a real screen reader such as NVDA or VoiceOver.
easyMonitoring checks ARIA rules on all pages of your website automatically. With easyAudit you go through the manual points step by step.
Frequently asked questions about WAI-ARIA
How accessible is your website?
Test your website for free with our Live Check, no registration required.