Fail

Form fields without labels

The short version

Give each field a <label> or aria-label.

What it means

Some form fields have no accessible name: no <label> tied to them, no wrapping label, no aria-label, no aria-labelledby pointing to text, and no title. A placeholder alone doesn't count, because it disappears as soon as someone types.

Why it matters

A screen reader announces an unlabelled field as just "edit text", so people can't tell whether to type a name, an email address or a phone number. Speech-control users can't say the field's name to select it. Labels also make the click target bigger for everyone. WCAG 2 success criteria 1.3.1, 3.3.2 and 4.1.2 cover this.

How to fix it

  1. Add a visible label and connect it: <label for="email">Email</label><input id="email">.
  2. Or wrap the field: <label>Email <input type="email"></label>.
  3. If the design has no room for visible text, use aria-label="Search" as a last resort.
  4. Make sure every for matches an existing id, and that ids are unique.
  5. Don't rely on placeholder text as the only label.

Check it worked

Run the accessibility check again on the same address. The finding should be gone. Then try the page yourself with only the keyboard, and if you can, with a screen reader such as NVDA or VoiceOver: automated checks find only some problems.