ARIA & Engineering7 min readUpdated 2026-11-15

WAI-ARIA Attributes Explained: Roles, States & Properties

Bad ARIA is worse than no ARIA. Learn when to reach for WAI-ARIA attributes and how to pair them with real keyboard state updates.

Key Takeaways

  • First Rule of ARIA: Prefer native HTML elements whenever available.
  • ARIA attributes only update the accessibility tree—they do not add keyboard event listeners or visual styles.
  • Always verify aria-labelledby and aria-describedby IDs exist in the DOM.

Essential State Attributes

Interactive disclosures, tabs, and toggles rely on live state attributes like aria-expanded, aria-selected, aria-pressed, and aria-invalid that update dynamically via JavaScript.

Disclosure button with aria-expanded

Recommended Pattern
<button type="button" aria-expanded="false" aria-controls="faq-1">Shipping details</button>
<div id="faq-1" hidden>Ships in 2 business days.</div>

Frequently Asked Questions

Assistive technology users can land on an interactive control that announces nothing—never place aria-hidden='true' on focusable elements or ancestors of focusable elements.

Interactive Tools for This Guide

ARIA & Dev

ARIA Attribute Checker

Validate aria-* spelling, WAI-ARIA 1.2 compliance, and broken ID references.

Open tool
ARIA & Dev

ARIA Role Validator

Check explicit role="..." attributes against valid WAI-ARIA 1.2 roles.

Open tool

Continue Reading