Labels
Once a field is filled in, people still need to know what it was for.
The answer
Give every field a visible label that stays in place while people type. As strong as the weakest rule behind it: moderate.
-
Give every field a label, linked to the field in code.
Required by WCAG 2.2 at level A (1.3.1 and 3.3.2). Both reopened and checked.
- Applies when
- Always.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardsStandard: Understanding SC 1.3.1 Info and RelationshipsW3C WAI, 2026
- Standard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
- Standard: HTML Living Standard, the label elementWHATWG
-
Keep the label visible while people type and after. Text inside the field that disappears is not a label.
Baymard and NN/g both report people deleting their entry to see the label again and struggling to fix errors, but neither gives participant numbers; GOV.UK, Carbon and Polaris agree. It also follows from working memory limits: a label that vanishes has to be remembered. No controlled study, so 3.
- Applies when
- Always.
- Based on
- Practitioner research
- From research on
- Working memory holds only a few items at once
- Principle
- Recognition over recall
- Common mistake
- Placeholder text as the only label (rule 4). See Placeholder text.
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- GuidanceGuidance: Placeholders in Form Fields Are HarmfulKatie Sherwin, 2014
- Guidance: Text input component (GOV.UK Design System)Government Digital Service
- Guidance: Text input usage (Carbon Design System)IBM
- Guidance: TextField (Shopify Polaris)Shopify
The other rules
-
Make the field’s accessible name include the words of its visible label.
Required by WCAG 2.2 at level A (2.5.3), so that people using speech input can say what they see. Reopened and checked.
- Applies when
- The field has a visible text label.
- Based on
- Standard or law
- Principle
- Work for everyone
- Common mistake
- A visible label with a different name exposed to software, so that speaking the label does nothing (rule 2).
- StandardStandard: Understanding SC 2.5.3 Label in NameW3C WAI, 2026
-
Give a group of related controls, such as radio buttons, one group label plus a label for each.
Required by WCAG 2.2 at level A. Reopened and checked.
- Applies when
- Controls form a group.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardsStandard: Understanding SC 1.3.1 Info and RelationshipsW3C WAI, 2026
- Standard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
-
Put each label closer to its own field than to any other.
Convention across GOV.UK, Carbon, Primer and NN/g, with one eight-person eye-tracking study. No controlled test of distance, so 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Make controls match their effects
- User researchUser research: Web form design guidelines: an eyetracking studycxpartners
- GuidanceGuidance: Form Design Quick Fix: Group Form Elements Effectively Using White SpaceMarieke McCloskey, 2013
- Guidance: Text input component (GOV.UK Design System)Government Digital Service
- Guidance: Text input usage (Carbon Design System)IBM
- Guidance: FormControl component (GitHub Primer, docs source on GitHub)GitHub
-
Hide a label only when the field’s purpose is obvious, such as a lone search box, and keep it for screen readers.
Baymard and three design systems allow it under conditions they describe differently; Primer gives no rule. Rated 2.
- Applies when
- The form is a single field whose purpose is evident.
- Based on
- Convention
- Principle
- Leave out what is not needed
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- GuidanceGuidance: TextField (Shopify Polaris)Shopify
- Guidance: Text input usage (Carbon Design System)IBM
- Guidance: FormControl component (GitHub Primer, docs source on GitHub)GitHub
-
Put the label above the field.
A 2006 eye-tracking report with no sample size favored labels above; an 11-person study found right-aligned labels beside the field fastest; a Census phone study of about 120 people found no difference among five placements. Design systems default to above. Evidence points both ways, so 1.
- Applies when
- Always.
- Based on
- Research
- Principle
- Make controls match their effects
- ExperimentsExperiment: Using eye-tracking to evaluate label alignment in online formsSubhrajit Das, 2008
- Experiment: US Census Bureau research report on older and younger adults' smartphone data entry (label placement, character countdown, predictive text); title not shown on the page I readUS Census Bureau authors
- User researchUser research: Label Placement in FormsMatteo Penzo, 2006
- GuidanceGuidance: Form Design Quick Fix: Group Form Elements Effectively Using White SpaceMarieke McCloskey, 2013
- Guidance: Text input component (GOV.UK Design System)Government Digital Service
- Guidance: Label placement in forms: what's best?Effortmark
-
Put the label outside the field, not inside it.
One vendor's online experiment (4.3 million visitors) found a small lift for one of two variants and none for the other; NN/g ranks it below an outside label on reasoning; Baymard called it untested; the Census study found no difference. Rated 1.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Recognition over recall
- ExperimentExperiment: US Census Bureau research report on older and younger adults' smartphone data entry (label placement, character countdown, predictive text); title not shown on the page I readUS Census Bureau authors
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- GuidanceGuidance: Floating labels in checkout (Growth A/B tests)Fundraise Up, 2024
- Guidance: Placeholders in Form Fields Are HarmfulKatie Sherwin, 2014
- Guidance: Text field (Material Web component docs)Material Design
Accessibility
- WCAG 2.2 · 1.3.1 · AThe label-to-field relationship is available to software. It sets no rule on label position.
- WCAG 2.2 · 3.3.2 · AFields that take input have labels or instructions.
- WCAG 2.2 · 2.5.3 · AThe exposed name contains the visible label text. Its Understanding document says placeholder text can count as the visible label when nothing else is nearby, which is a floor, not a recommendation.
- WCAG 2.2 · 4.1.2Also likely to apply: 4.1.2 Name, Role, Value.
Open questions
- OpenAbove or beside? See rule 7. No study has enough participants to settle it, and none tests long forms or translated labels.
- OpenFloating labels. See rule 8. No independent controlled comparison with an outside label was found.
- OpenWhether clicking a label moves focus to its field depends on the platform (HTML standard); no usability evidence was read on it.
Sources
- ExperimentsExperiment: Using eye-tracking to evaluate label alignment in online formsSubhrajit Das, 2008
- Experiment: US Census Bureau research report on older and younger adults' smartphone data entry (label placement, character countdown, predictive text); title not shown on the page I readUS Census Bureau authors
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- User research: Web form design guidelines: an eyetracking studycxpartners
- User research: Label Placement in FormsMatteo Penzo, 2006
- StandardsStandard: Understanding SC 1.3.1 Info and RelationshipsW3C WAI, 2026
- Standard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
- Standard: HTML Living Standard, the label elementWHATWG
- Standard: Understanding SC 2.5.3 Label in NameW3C WAI, 2026
- GuidanceGuidance: Placeholders in Form Fields Are HarmfulKatie Sherwin, 2014
- Guidance: Text input component (GOV.UK Design System)Government Digital Service
- Guidance: Text input usage (Carbon Design System)IBM
- Guidance: TextField (Shopify Polaris)Shopify
- Guidance: Form Design Quick Fix: Group Form Elements Effectively Using White SpaceMarieke McCloskey, 2013
- Guidance: FormControl component (GitHub Primer, docs source on GitHub)GitHub
- Guidance: Label placement in forms: what's best?Effortmark
- Guidance: Floating labels in checkout (Growth A/B tests)Fundraise Up, 2024
- Guidance: Text field (Material Web component docs)Material Design
Related
- Placeholder textDo not use placeholder text as a label or for instructions. Put both outside the field.Answer: moderate.
- Required and optional fieldsMark at each field whether it is required, and require only what the task cannot do without.Answer: moderate.
- Stating format requirementsRemove format rules where you can. Where you cannot, state them before people type.Answer: moderate.