# status

> The `status` ARIA role is used to indicate that the content of the element is updated dynamically and the user should be informed of changes.

## What does role='status' do and when should I use it?

The role for a live region with advisory information that is not urgent, like 'Saved' or a search result count. It has implicit `aria-live='polite'`, so screen readers announce changes without interrupting the user.

- Topic: Live Region Roles
- Type: role

## Example

Wrong:

```html
<div id="msg"></div>
<script>
  // inserted with text, often missed
  msg.innerHTML = '<p role="status">Saved</p>';
</script>
```

Right:

```html
<div id="msg" role="status"></div>
<script>
  msg.textContent = "Saved";
</script>
```

The live region exists first and only its text changes, so screen readers reliably announce the update.

## Common mistakes

- Adding the status element with its text at the same time, so nothing is announced.
- Using `role='status'` for every update, flooding the screen reader.

## Key points

- The `role='status'` container is in the DOM before its text changes, not inserted together with the message.
- Status messages do not move focus; the user stays where they are.
- Urgent errors use `role='alert'`, not `role='status'`.

## Interview questions

### What is the difference between role='status' and role='alert'?

`status` is polite and waits until the user is idle; `alert` is assertive and interrupts. Use `alert` only for urgent, time-sensitive messages.

### Do I need aria-live='polite' with role='status'?

No. `role='status'` already implies `aria-live='polite'` and `aria-atomic='true'`. Adding them again is harmless but redundant.

### Does the output element have the status role?

Yes, `<output>` maps to the `status` role, so its changes are announced politely.

## Related cards

- [Live Region](https://wonderium.dev/a11y/live-region.md)
- [\[aria-live\]](https://wonderium.dev/a11y/aria-live.md)
- [alert](https://wonderium.dev/a11y/alert.md)
- [log](https://wonderium.dev/a11y/log.md)
- [`<output>`](https://wonderium.dev/html/output.md)

---

- Level: [Accessibility](https://wonderium.dev/a11y.md)
- HTML version: https://wonderium.dev/a11y/status
- Last updated: 2026-11-25
