ARIA (Accessible Rich Internet Applications)
๐ Covered in this chapter:
WAI-ARIA Overview ยท ARIA Roles ยท aria-label & aria-labelledby ยท aria-expanded & aria-hidden ยท aria-live & aria-invalid ยท When NOT to use ARIA ยท Custom Accessible Widgets
Welcome to Phase 10 (Chapter 26): ARIA! WAI-ARIA attributes extend HTML markup to bridge accessibility gaps in dynamic rich internet applications.
1ARIA Accordion Toggle Example
HTML โ ARIA Expanded State Control
โถ Run in HTML Editor
<button aria-expanded="false" aria-controls="faq1" onclick="this.setAttribute('aria-expanded', this.getAttribute('aria-expanded') === 'false')">
Toggle Answer
</button>
<div id="faq1" role="region" aria-label="FAQ Content">Answer text content...</div>