Accessibility Wiki

Form inputs must have a label

Rule label-control · Forms · impact critical · Static + live

↩ Back to the rules index · WCAG cross-reference

Why it matters

A form control with no programmatic label is announced only by its type ("edit text"), so the user has no idea what to enter. A

How to fix

Add matching the control’s id, wrap the control in a

Example

✕ Fails
<input type="email">
✓ Passes
<label for="email">Email</label><input id="email" type="email">

WCAG success criteria

4.1.2 Name, Role, Value — Level A

Every UI component must expose a correct name, role, and (where relevant) state/value to assistive technology.

Understanding 4.1.2

3.3.2 Labels or Instructions — Level A

Inputs need labels or instructions so users know what to enter.

Understanding 3.3.2

Standards

This rule contributes to the following standards:

WCAG A EN 301 549 Section 508 Trusted Tester ACT

Standard Criteria
Section 508 1194.22(n)
EN 301 549 9.4.1.2, 9.3.3.2
Trusted Tester v5 5.c
ACT (WCAG SC) 4.1.2, 3.3.2

References