Read This First
No ARIA is better than Bad ARIA. Before using any ARIA, read this to understand why.
How to build accessibility semantics into web patterns and widgets
No ARIA is better than Bad ARIA. Before using any ARIA, read this to understand why.
An alert dialog is a modal dialog that interrupts the user's workflow to communicate an important message and acquire a response. Examples include action confirmation prompts and error message confirmations. The alertdialog role enables assistive technologies and browsers to distinguish alert dialogs from other dialogs so they have the option of giving alert dialogs special treatment, such as playing a system alert sound.
Alert Dialog Example: A confirmation prompt that demonstrates an alert dialog.
See the keyboard interaction section for the modal dialog pattern.
alertdialog
has either:
alertdialog
has a value set for aria-describedby that refers to the element containing the alert message.
This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.