Error message
UX patterns3.9.14
WCAG 2.1 AA: Ideal Support
Component is usable and understandable for the majority of people with or without disabilities. The meaning conveyed and the functionality available is the same.
Roles and attributes
The list below will help you to keep in mind the necessary roles and attributes to make our components fully accessible in your interfaces.
Role | Attribute | Element | Usage |
---|---|---|---|
alert | div |
Identifies the div element as a container with an error alert. |
Resources
- W3 alert role has detailed information about the alert accessible behavior.
Other recommendations
See more accessibility recommendations in the common Accessibility guide.