alert role
The ARIA role for an important, time-sensitive message, which screen readers announce immediately by interrupting what they are saying.
In more detail
role="alert" is an assertive live region. Use it for errors that need attention now, such as a failed payment or a form error after submission, not for routine updates.
Related terms
- ARIA live region — An element whose text changes are announced by screen readers even though focus is elsewhere, set up with aria-live or roles such as status and alert.
- status role — The ARIA role for advisory messages, such as "Saved", that screen readers announce politely when they finish what they are reading.
Taught in
- Actionable Form Primitives: Buttons, Switches & Inputs — Design Systems & Component Engineering
- Screen Reader Interactions: Live Regions & Announcement Cues — Design Systems & Component Engineering