[aria-atomic]

Term side of the Card.
Topic: Global ARIA Attributes
Unit title: [aria-atomic]
Categories: Attribute
Explanation side of the Card

Explanation: The attribute that indicates whether the assistive technology should treat updates to an element as a whole or in parts. When set to 'true', it tells screen readers to present the entire content as a single unit.

Example

Wronghtml
<p aria-live="polite">
  Cart: <span id="count">2</span> items
</p>
Righthtml
<p aria-live="polite" aria-atomic="true">
  Cart: <span id="count">2</span> items
</p>

With aria-atomic='true', changing the count reads the full sentence instead of just the new number.

Common mistakes

  • Only the changed number is read, like '3' instead of 'Item 3 of 10', because aria-atomic is missing.

Key points

  • aria-atomic is set on the live region (or an ancestor inside it), not on unrelated elements.
  • Regions where a partial update loses meaning, like 'Item 3 of 10', use aria-atomic='true'.

Interview questions

What is the default value of aria-atomic?

The default is 'false', so only the changed nodes are announced. The status and alert roles imply 'true'.

Does aria-atomic work without aria-live?

It has effect only inside a live region, which can come from aria-live or from a live role like status, alert or log.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy