aria-live
The aria-live attribute designates a section of a page as a live region—a dynamic area monitored by assistive technologies for content changes.
<div aria-live="polite" class="visually-hidden"></div>
Learning Hub
Explore our collection of real-world code examples and use cases for common ARIA attributes. Learn how to implement accessible patterns correctly.
The aria-live attribute designates a section of a page as a live region—a dynamic area monitored by assistive technologies for content changes.
<div aria-live="polite" class="visually-hidden"></div>
The aria-live attribute designates a section of a page as a live region—a dynamic area monitored by assistive technologies for content changes. When the content inside such a region updates, screen readers may announce the update without disrupting the user’s current focus. This is essential for dynamic interfaces where visual updates alone aren’t sufficient. You […]
View Code Example north_eastThe aria-labelledby attribute allows an element to derive its accessible name from one or more other elements on the page by referencing their ids. It’s particularly useful when you want to associate visible text from existing DOM elements rather than embedding duplicate text. This attribute has higher precedence than other naming methods—like aria-label, <label>, or […]
View Code Example north_eastThe aria-label attribute assigns an accessible name to an element when visible text or other naming mechanisms aren’t available or adequate. It’s particularly useful when elements like icon-only buttons or custom widgets lack meaningful text. When to use it: Icon-only buttons or controls without text labels. Custom UI components where native semantics are insufficient. When […]
View Code Example north_east