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.

Developer working on the code of an accessible website

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.

  • check Current version: WAI-ARIA 1.2, W3C Recommendation since 6 June 2023
  • check ARIA changes only what is announced, not the behavior
  • check First rule: native HTML before ARIA
  • check In 2026, pages with ARIA had more errors on average
WAI-ARIA – the key facts
check Roles, states, properties
check aria-label, aria-hidden, aria-describedby
check 82.7% of home pages use ARIA
check Important for WCAG 4.1.2

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.

  • check aria-label: gives an element a name, such as “Search” for a magnifier button
  • check aria-labelledby and aria-describedby: point to visible text as name or description, such as a password hint
  • check aria-expanded: reports whether a menu or accordion is open
  • check aria-hidden="true": hides purely decorative elements from screen readers
Symbols for seeing, hearing and operation as a symbol for ARIA attributes

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:

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:

  • check aria-label on elements without a suitable role, such as a plain div
  • check aria-hidden="true" on links or buttons
  • check role="button" without keyboard support
  • check aria-label that differs from the visible text (WCAG 2.5.3)
Developer checking ARIA attributes on a laptop

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.

  • check Automated: invalid roles and attributes, hidden focusable elements
  • check Developer tools: name, role and state per element
  • check 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.

SiteCockpit

Is ARIA used correctly? Check your website now

Frequently asked questions about WAI-ARIA

How accessible is your website?

Test your website for free with our Live Check, no registration required.