ARIA Live Regions

ARIA role: alert

Urgent, non-interactive feedback that should interrupt ordinary announcements. Use for important changes, not routine confirmations. Implicit assertive live region and atomic updates; avoid moving focus to it. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.

Formal Syntax & Structure

html syntaxhtml
role="alert"

Parameters & Attributes

NameTypeDescription
roletokenExplicit role token alert; use only where allowed. Omit when native semantics match.

Working Example

Example Snippethtml
<div role="alert" id="notice"></div><button onclick="document.getElementById('notice').textContent='Connection lost'">Simulate error</button>
HTML Reference