ARIA Relevance (`aria-relevant`)

`aria-relevant` specifies which types of changes within an ARIA live region should be considered for assistive-technology announcements. It works with live-region behavior to control whether additions, removals, text changes, or combinations of these changes are relevant.

`aria-relevant` is an ARIA state/property used on a live region to indicate which mutations should be treated as relevant to users of assistive technology. It does not itself make an element a live region; properties such as `aria-live` determine the announcement behavior.

The value can identify one or more change types: `additions`, `removals`, and `text`. The value `all` represents all three categories. Multiple values can be specified as a space-separated list, such as `additions removals`.

For example, a notification container might use `aria-relevant="additions"` when newly inserted notifications are what users need to hear. A dynamic list where disappearing items are important could include `removals` as well. The appropriate setting depends on which DOM changes convey meaningful information to the user.

`aria-relevant` should not be treated as a general-purpose way to force announcements. Browser and assistive-technology behavior can vary, and overly broad live-region configuration can produce excessive or distracting announcements. Prefer concise, meaningful updates and test important interactions with the assistive technologies supported by the application.

Key points

Interview questions

Does `aria-relevant` guarantee that a particular string will be announced?

No. It expresses which categories of live-region changes are relevant, but it is not a guarantee of identical spoken output across browsers and assistive technologies. The surrounding live-region configuration and the way the DOM is updated also matter. Important interfaces should therefore be tested with the browser and screen-reader combinations they support.

How does `aria-relevant` work with `aria-live`?

`aria-live` establishes the live-region announcement behavior and its politeness level, such as `polite` or `assertive`. `aria-relevant` specifies which mutation categories are relevant within that live region. They solve different parts of the problem and can be used together. For example, `aria-live="polite" aria-relevant="additions"` expresses that newly added content is relevant and should be announced politely.

Why might you avoid using `aria-relevant="all"`?

`all` treats additions, removals, and text changes as relevant. That can result in more announcements than users need, particularly in highly dynamic interfaces. Excessive announcements can make a screen-reader experience noisy and difficult to follow. A narrower setting can communicate the specific changes that matter while reducing unnecessary output.

What does `aria-relevant` do?

`aria-relevant` tells assistive technologies which kinds of changes in a live region are relevant. The main categories are additions, removals, and text changes. It is used together with live-region behavior such as `aria-live`. It does not by itself make an element a live region.

What values can `aria-relevant` take?

The change categories are `additions`, `removals`, and `text`. Multiple categories may be combined with spaces. The value `all` covers additions, removals, and text changes. The chosen value should reflect which updates are meaningful to users.