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

Taught in

References