Accessibility Certified – Home

3.3.1 Error Identification

When a form detects an input error, the field in error is identified and the problem is described to the user in text.

Level APrinciple 3: Understandable

What does it mean?

If your form checks input automatically, for example a missing required field or an invalid e-mail address, it must tell users which field is wrong and what the problem is, in words. A red border or an icon alone is not enough.

The message should be connected to the field in code, so screen readers read it when the field gets focus. This criterion applies whenever errors are detected automatically, both in the browser and after sending to the server.

Who does it help?

  • People who are colour-blind and cannot see a red outline
  • Screen reader users, who need to know which field to fix
  • People with cognitive disabilities who need clear, specific messages

Common failures

  • Invalid fields are only marked with a red border
  • A general message such as "The form contains errors" with no hint which field is meant
  • The error text is shown visually but not linked to the field, so screen readers do not read it
  • The form is simply reloaded and empty, with no message at all

How we test it

  • evidence Evidence: our scanner collects material such as screenshots, lists and measurements.

Test question: Input errors are identified and described in text (validation messages captured without submitting).

A person decides every criterion. No criterion ever passes automatically.

How to fix it

Problem
<input id="email" type="email" style="border-color:red">
Better
<label for="email">E-mail address</label>
<input id="email" name="email" type="email" autocomplete="email"
  aria-invalid="true" aria-describedby="email-error">
<p id="email-error">Error: please enter an e-mail address, such as [email protected].</p>

aria-invalid marks the field as wrong and aria-describedby makes the error text part of its announcement.

Practical tips

  • For long forms, also show a list of errors at the top with links to each field.
  • Remove aria-invalid again once the field is corrected.

Guides and patterns on this

Official source

Understanding WCAG 2.2 at the W3C: 3.3.1 Error Identification

How does your website do on this criterion?

The free check tests your home page automatically; the audit decides all 55 criteria.

Free checkAll criteria