ARIA alert Role Example

This example shows a simple alert after you click the button.

More information on alert pattern

Accessibility Feature

Keyboard Support

No keyboard interaction needed.

ARIA Roles, Properties and States

Role Property/State Usage
alert Identify element as Alert widget
aria-live with implicit value of assertive Announces alert when it is displayed.
aria-atomic with implicit value of true Tells assistive technologies to announce all content.

Source Code