On this page
  1. ARIA & Accessibility Attributes
  2. Contents
  3. First Rule of ARIA
  4. Naming, Descriptions & State
  5. Live Regions (aria-live)

ARIA & Accessibility Attributes

Prev: Form & Validation Attributes | Up: attributes | Next: tutorials
Rel: Progressive Enhancement & Accessibility, Document & Landmarks
Ref: MDN Web Docs — ARIA
Tags: #public #web #html #attributes #accessibility


Contents


First Rule of ARIA

Prefer native HTML semantics (<button>, <a href>, <dialog>, <nav>) over adding ARIA roles to generic <div>/<span> elements. ARIA changes how assistive technologies announce an element, not its keyboard behavior or styling.


Naming, Descriptions & State

<button type="button" aria-expanded="false" aria-controls="menu-panel">
  Menu
</button>
<div id="menu-panel" hidden>
  <a href="settings.html">Settings</a>
</div>

Live Regions (aria-live)

Live regions announce dynamic DOM text updates to screen readers without moving keyboard focus:

Linked from

Related notes