Accessible forms: labels, errors, autocomplete

Published 27 October 2026

In short: form accessibility is four disciplines: every field has a real label (not placeholder text), required fields are marked in text, errors name the field and the fix, and autocomplete/type hints let the browser or phone fill known values. W3C publishes detailed form guidance; the same ideas map to Android via contentDescription, error text and autofill hints.

Why is placeholder text not a label?

Placeholders disappear when the user types, are often low-contrast, and are not reliably announced as labels by assistive technology. WCAG's labels-or-instructions criterion (3.3.2) expects a persistent, programmatically associated label - on the web, a <label> bound with for/id; on Android, an android:labelFor association or a contentDescription on the control itself.

How should required fields be marked?

In text, not by color alone. "Email (required)" as part of the label works everywhere; a red asterisk with no explanation fails users who cannot perceive the color or do not know the convention. On Android, include "required" in the label text or contentDescription.

What makes an error message accessible?

  • Say what went wrong: "Email address is missing the @ symbol" beats "Invalid input". WCAG 3.3.1 (Error Identification) requires the error to be identified and described in text.
  • Attach it to the field: error text associated with the control (aria-describedby on web; TextInputLayout's error on Android) so screen readers announce it.
  • Move focus sensibly: after a failed submit, take the user to the first error - do not leave them at the bottom of a long form.
  • Suggest the fix: WCAG 3.3.3 (Error Suggestion) asks for a known correction when one exists.

Why is autocomplete an accessibility feature?

WCAG 1.3.5 (Identify Input Purpose) exists because programmatically known input purposes let browsers and phones fill names, emails and addresses automatically - a major help for people with motor or memory impairments, and a convenience for everyone else. On the web that is the autocomplete attribute; on Android, android:autofillHints. It costs almost nothing and is one of the highest-value form fixes.

What about groups and dates?

Related controls (a set of radio options, a three-part date) need a shared legend: fieldset/legend on the web, a labelled group on Android. And never make a date picker the only input path - a typed alternative serves keyboard and screen-reader users. Forms are where our free web scan tends to find its most actionable results on real sites; it covers one page at a time and only part of all issues.

From the same small team: Memory Quest, a free memory-training game for Android, on Google Play.

Sources