References

Beginner-friendly references for web development, with live, editable examples.

The HTML aria-relevant attribute

ARIA Accessibility Updated
Quick answer

The aria-relevant attribute specifies which kinds of changes in a live region are announced. Values (space-separated): additions, removals, text, or all. The default is additions text.

Overview

The aria-relevant attribute specifies which types of changes in a live region should be announced.

It configures (or relates to) a live region: an area whose dynamic updates are announced to screen-reader users without moving focus. The region must already exist in the DOM before its contents change, and live regions should be used sparingly so a flood of announcements does not overwhelm the user.

Like all ARIA, aria-relevant changes only the accessibility tree (what assistive technology perceives), never the element's behavior or appearance. The first rule of ARIA applies: if a native HTML element or attribute conveys this, use that instead, and only reach for ARIA when nothing native fits.

Syntax

<ul aria-live="polite" aria-relevant="additions"></ul>

Values

Value
A space-separated list: additions, removals, text, all.

Example

Live example
<ul aria-live="polite" aria-relevant="additions text"></ul>

Best practices

  • Follow the first rule of ARIA: use a native HTML element or attribute that conveys this where one exists, rather than adding ARIA.
  • Put the live region in the DOM first, then change its contents so the update is announced.
  • Use polite announcements for most updates; reserve assertive for genuinely urgent ones.
  • Use live regions sparingly to avoid overwhelming the user with announcements.

Frequently asked questions

What does aria-relevant do?
Specifies which types of changes in a live region should be announced.
What is an ARIA live region?
A region whose dynamic updates are announced by assistive technology without moving focus, used for status messages, errors and similar.
What is the difference between polite and assertive announcements?
Polite waits for a pause before announcing; assertive interrupts immediately. Use assertive only for urgent updates.
Do I need aria-relevant if native HTML already conveys it?
Usually not. ARIA is for what native HTML cannot express; redundant or incorrect ARIA can make accessibility worse. Reach for it only when no native element fits.