Glossary coding Term Page
role="alert"
an attribute that tells screen readers to announce the region immediately
Core Idea
role="alert" is an attribute that tells screen readers to announce the region immediately. It usually makes the most sense alongside Error state, Retry UX, Backoff.
Why It Matters Here
Mathbong reuses this term across javascript posts as shared vocabulary.