Skip to content
WCAG Clear

How to fix missing form labels

By WCAGCLEAR Nerds. Published .

Short answer: every form field needs a visible label that is tied to the control in code. A placeholder is not a label. WebAIM's 2026 Million report found missing form input labels on 51% of home pages, up from 48.2% in 2025. Scan, fix the source, then rescan.

Why do missing form labels matter?

A field without a label is a wall. Screen reader users hear "edit text" with no name. Speech-input users cannot say the field's name. Visible labels also help everyone, including people with cognitive disabilities. WebAIM's 2026 Million report found missing form input labels on 51% of home pages, up from 48.2% in 2025.

Fix the pattern in your form component, not one page at a time. One unlabeled input in a theme can fail every contact, signup and checkout form that uses it. Start with a free scan, then work through the WCAG 2.1 AA checklist.

Which WCAG success criteria cover form labels?

Several. 1.3.1 Info and Relationships (A) requires the label-to-field relationship to be programmatically determined. 3.3.2 Labels or Instructions (A) requires a label or instructions that everyone can perceive. 4.1.2 Name, Role, Value (A) requires a programmatic name. 2.5.3 Label in Name (A) requires that name to include the visible text.

W3C's Understanding document for 3.3.2 is explicit: providing a visible label is not the same as associating it in code, and an aria-label that only assistive technology can read is not enough for 3.3.2. You can pass 4.1.2 with aria-label and still fail 3.3.2. You can pass 3.3.2 with a visible label and still fail 2.5.3 if that visible text is missing from the accessible name.

This is a how-to across those criteria, not a substitute for what WCAG 2.1 AA means. It is not legal advice.

How do I associate a visible label with a field?

Use a visible label element and associate it with the field. The reliable pattern is a for attribute that matches the input's id. You can also wrap the control inside the label. W3C's forms tutorial prefers explicit for/id. That gives a larger click target and a name assistive technology can read.

  • Put a visible label element next to the field. In left-to-right layouts, labels usually sit above or to the left of text inputs, and to the right of checkboxes and radio buttons.
  • Set the label's for attribute to match the input's id, for example for="email" and id="email". The two strings must match exactly.
  • Wrapping the input in the label works when you cannot set an id. Explicit for/id is better supported.
  • Keep the visible words and the accessible name in sync so voice-control users can say what they see (2.5.3).

Do not use a nearby heading or placeholder as a stand-in unless you have also associated that text in code. If the control is an image button, its name comes from alt, which is the same idea as non-text content.

Is a placeholder a label?

No. A placeholder is not a label. It often has weak contrast, it disappears when the user types, and screen readers do not treat it as a label. W3C's forms tutorial says the same, and so does the HTML Standard as cited in Understanding 2.5.3. Use placeholder only as an extra example, next to a real label.

aria-label and aria-labelledby can supply a name when a visible label truly cannot appear, for example a search field that sits beside a visible Search button. W3C's tutorial treats those as options for cases where the purpose is already clear from surrounding content. They do not, by themselves, satisfy 3.3.2 for everyone, because the name is not presented to people who are not using assistive technology.

Visually hidden labels are a similar last resort. Hide them with a clip or visually-hidden class, not with display: none or visibility: hidden, which also hide the text from screen readers. A hidden label plus an icon is better than nothing. A visible label is better than a hidden one.

If you add aria-label on top of a visible label, the aria-label replaces the visible words in the accessible name. If those words differ, you fail 2.5.3. Prefer the native label, or aria-labelledby pointing at the visible text.

How do I group fields, mark required fields, and show errors?

Group related controls with fieldset and legend, especially radio buttons and checkbox sets. Mark required fields in the label text, not by color alone. When a submission fails, identify the error in text (3.3.1) and, where you know the fix, say how to correct it (3.3.3). Tie the message to the field with aria-describedby.

  • Use fieldset and legend for a set of radios, related checkboxes, or two address blocks that reuse the same labels (Shipping vs Billing).
  • Keep the legend short. Make each control's own label understandable on its own, because some screen readers skip the legend.
  • Put overall instructions before the form, including how required fields are marked, so they are read before forms mode.
  • Include "required" in the label, or an asterisk whose meaning is explained in those instructions. Color alone is not enough.
  • Put error text in the page, not only a red border. Low-contrast error text also fails 1.4.3 Contrast (Minimum).
  • Icon-only search: give the input a name (visible label, visually hidden label, or aria-label) and give the button a name such as Search.

Frequently asked questions

Does a placeholder pass WCAG for labels?
No. W3C's forms tutorial says placeholder text is not a replacement for labels, and screen readers do not treat it as one. It also tends to fail contrast and disappears as soon as the user types. Keep a visible, associated label.
Can I hide the label if the design already looks obvious?
Sometimes, for a search field next to a Search button, W3C shows a visually hidden label or aria-label. Most fields should keep a visible label. Never hide the label with display: none. Hidden labels are easy to get wrong, so default to visible.
What about a search field with only a magnifying-glass icon?
The input still needs an accessible name, and the button still needs a name such as Search. A visible Search label is the clearest fix. If the icon is the only visual cue, add a visually hidden label or aria-label, and confirm 3.3.2 still holds for people who do not use a screen reader.
Do I need aria-label if I already have a visible label?
Usually no. A native label already provides the name. Adding aria-label overrides that name. If the two strings differ, you fail 2.5.3 Label in Name, which matters for speech input. Use aria-labelledby only when you must combine existing on-page text.

Check your own page

Run a free scan to see which of these issues appear on your site.

Check a site

Sources

  1. The WebAIM Million: 2026 report, WebAIM
  2. Understanding Success Criterion 1.3.1: Info and Relationships, W3C WAI
  3. Understanding Success Criterion 3.3.2: Labels or Instructions, W3C WAI
  4. Understanding Success Criterion 4.1.2: Name, Role, Value, W3C WAI
  5. Understanding Success Criterion 2.5.3: Label in Name, W3C WAI
  6. Understanding Success Criterion 3.3.1: Error Identification, W3C WAI
  7. Understanding Success Criterion 3.3.3: Error Suggestion, W3C WAI
  8. Labeling Controls (Forms Tutorial), W3C WAI
  9. Grouping Controls (Forms Tutorial), W3C WAI
  10. Form Instructions (Forms Tutorial), W3C WAI
  11. Web Content Accessibility Guidelines (WCAG) 2.1, W3C

This guide is educational and is not legal advice. Talk to an attorney about your legal obligations.