Form elements must have labels

How to fix the label accessibility rule. Forms.

What this rule checks

Ensure every form element has a label

Who is affected

This form field has no label, so screen-reader users hear "edit text" with no idea what to type. Placeholder text is not a label: it disappears and isn't reliably announced.

How to fix it

Connect a visible <label> to the field with for/id (or wrap the field in the label).

Example

Before

<input type="email" placeholder="Email">

After

<label for="email">Email</label>
<input type="email" id="email">

WCAG success criteria

When this rule fails, the page fails:

Find it on your own page

Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.

More detail