Form fields must have labels

Every text field, checkbox, radio button and textarea needs a label that is programmatically tied to it, so assistive technology can announce what the field is for.

Rule IDlabel
ImpactCritical
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed with a text: from the page or written by AI

Example

Before
<p>Full name</p>
<input type="text" name="fullname">
<input type="checkbox" name="terms"> I accept the terms

A screen reader says “edit text, blank” and “checkbox, not checked” with no purpose.

After
<label for="fullname">Full name</label>
<input type="text" id="fullname" name="fullname">
<label><input type="checkbox" name="terms"> I accept the terms</label>

A screen reader says “Full name, edit text” and “I accept the terms, checkbox”.

Why it matters

Text that merely sits next to a field is not connected to it in code. Screen reader users who tab into the field hear only its type, such as “edit text”, and must explore around it to guess what to enter. On a checkout or sign-up form, one wrong guess can mean a failed order.

Speech recognition users say the label to move to a field, which only works when the label is linked. A linked label also enlarges the click target: clicking the text focuses the field or ticks the checkbox, which helps people with tremors or limited fine motor control. Missing labels are among the most frequent findings in accessibility audits and lawsuits.

How to fix it

Connect a visible label with for and id. This is the most robust technique:

<label for="postcode">Postcode</label>
<input type="text" id="postcode" name="postcode">

The id must be unique on the page, or the label may attach to another field.

Wrap the field in the label. Handy for checkboxes and radio buttons:

<label><input type="radio" name="delivery" value="express"> Express delivery</label>

The visible text already exists elsewhere, such as a table header. Point to it with aria-labelledby:

<th id="qty-head">Quantity</th>
…
<input type="number" aria-labelledby="qty-head">

No visible text at all (a search box with a magnifier icon). Use aria-label, or a visually hidden <label>:

<input type="search" name="q" aria-label="Search recipes">

Do not hide the label with display: none or visibility: hidden: that removes it from screen readers too. Placeholder text and title are weak replacements, because they disappear or only show on hover.

Checklist

  1. Link every field to a label with for and id.
  2. Wrap checkboxes and radio buttons in their label.
  3. Use aria-labelledby when the text is elsewhere.
  4. Never hide labels with display: none.

How the check works

The check looks at <input> (except hidden and button types) and <textarea> elements. It passes when the field has a wrapping or for-linked label, aria-label, aria-labelledby, a title or a placeholder. It fails when none exists, or when the only label is hidden with CSS. Fields that pass only through title or placeholder are still weak; check that each label is visible and accurate.

Resources

Updated October 27, 2026