3.3.3 Error Suggestion
Level AA · added in WCAG 2.0
When your site detects an input error and knows how to correct it, it must tell the user how. The exception is when the suggestion would weaken security or defeat the purpose of the content, such as a test.
Who it helps
People with cognitive or learning disabilities may not work out what "Invalid input" means. Screen reader users and people with low vision cannot easily scan the page for clues, so a clear suggestion saves them guesswork.
How to meet it
- Say what the field expects, such as "Enter the date as MM/DD/YYYY, for example 11/02/2026".
- Name the allowed range or length when a value is out of bounds, such as "Enter a number from 1 to 10".
- Offer close matches when a value is not recognized, such as "Did you mean Portland?".
- Put the suggestion in the error text tied to the field with aria-describedby, so screen readers announce it.
- Do not reveal security details, such as whether the username or the password was wrong.
Examples
<label for="dob">Date of birth</label>
<input id="dob" type="text" aria-invalid="true" aria-describedby="dob-error">
<p id="dob-error">Error: Invalid date.</p><label for="new-pw">New password</label>
<input id="new-pw" type="password" autocomplete="new-password"
aria-invalid="true" aria-describedby="pw-error">
<p id="pw-error">Error: Password not accepted.</p><label for="dob">Date of birth</label>
<input id="dob" type="text" aria-invalid="true" aria-describedby="dob-error">
<p id="dob-error">Error: Enter the date as MM/DD/YYYY, for example 07/14/1985.</p><label for="new-pw">New password</label>
<input id="new-pw" type="password" autocomplete="new-password"
aria-invalid="true" aria-describedby="pw-error">
<p id="pw-error">Error: Use at least 12 characters. Yours has 8.</p>Can a scanner detect this?
No
axe-core has no rule for this criterion, because error messages appear only after input is checked. A person must enter wrong values in each field and judge whether the message explains how to fix them.
No automated rule tests this criterion. Check it by hand.
Common mistakes
- Writing generic messages like "Invalid input" or "Please check this field".
- Listing format rules only in the error, after the user has already failed, instead of also in the label or hint.
- Showing the suggestion only as a tooltip on hover, which keyboard and touch users may never see.
Related criteria
Check your own page
See which automated WCAG checks your page fails, with the failing elements and how to fix them.
Reviewed November 2, 2026