Close

Alert Messages

Alerts are commonly used with form submissions.

WAI-ARIA Reference: An alert is an element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task. Dynamically rendered alerts are automatically announced by most screen readers, and in some operating systems, they may trigger an alert sound. It is important to note that, at this time, screen readers do not inform users of alerts that are present on the page before page load completes. [ Source ]

Alert Messages Sample(s):

Informative

Informative alerts are more commonly used in association with providing information .

Success

Success alerts are more commonly used in association with successful form submissions.

Warning

Warning Alerts are more commonly used in association with unsuccessful form submissions.

Best Practices

For more information, visit this MDN resource