Skip to main content
Home
Back to Guidelines

What is Error Suggestion?

Provide suggestions for correcting errors when possible.

  • Users can fix mistakes faster when the message explains the problem.
  • Specific guidance reduces frustration and abandoned forms.
  • Screen reader users hear the error and the suggested correction together.

Good vs Bad Examples

Use the tabs to compare the accessible pattern with the example to avoid.

Good Example 1 – Suggestion Provided

Create account form with a specific error message that explains how to fix the email, password, and confirm password fields.
html live code
<p role="alert">Please enter a valid email address. Example: yourname@example.com</p>
Why this is correct (developer logic):
  • Each error includes a specific fix suggestion.
  • Users know what went wrong and how to recover.
  • The guidance reduces confusion and abandoned forms.

Good Example 2 – Specific Error Suggestions

Contact form showing field-level error suggestions that explain the required format for each input.
html live code
<p role="alert">Please enter a valid 10-digit phone number. Example: 03XXXXXXXXX</p>
Why this is correct (developer logic):
  • The suggestions are clear and field-specific.
  • Users can fix the issue without guessing.
  • Better guidance improves usability and accessibility.

Implementation Checklist

Progress0 / 5 completed (0%)

Knowledge Check

Answer Yes or No to test your understanding of error suggestion.

Score: 0 / 3 · Answered: 0 / 3

Does the good example demonstrate error suggestion correctly?

Is the bad example acceptable for error suggestion?

Should this pattern be checked with keyboard and screen reader testing?