# Labels

> Once a field is filled in, people still need to know what it was for.

Area: Forms. Evidence behind the answer: Moderate. Last checked November 12, 2026.
Page: https://uxreference.com/forms/labels

## The answer

Give every field a visible label that stays in place while people type.

- **Settled, WCAG AA.** Give every field a label, linked to the field in code. (https://uxreference.com/forms/labels#rule-1)
- **Moderate.** Keep the label visible while people type and after. Text inside the field that disappears is not a label. (https://uxreference.com/forms/labels#rule-4)

## The problem

People need to know what each field is for before, during and after typing, and software needs to know it too.

## How to decide

None. The sources do not describe more than one correct practice that depends on context.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Give every field a label, and tie the label to its field in code.

- Applies when: Always.
- Based on: Standard or law
- Principle: Work for everyone

Why: Required by WCAG 2.2 at level A (1.3.1 and 3.3.2). Both reopened and checked.

Sources: [Understanding SC 1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html); [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html); [HTML Living Standard, the label element](https://html.spec.whatwg.org/multipage/forms.html#the-label-element)

Link: https://uxreference.com/forms/labels#rule-1

#### Rule 2. Settled, WCAG AA

Make the name a field exposes to software contain the words of its visible label.

- Applies when: The field has a visible text label.
- Based on: Standard or law
- Principle: Work for everyone

Why: 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.

Sources: [Understanding SC 2.5.3 Label in Name](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)

Link: https://uxreference.com/forms/labels#rule-2

#### Rule 3. Settled, WCAG AA

Give a set of related controls, such as radio buttons, one group label as well as a label for each control.

- Applies when: Controls form a group.
- Based on: Standard or law
- Principle: Work for everyone

Why: Required by WCAG 2.2 at level A. Reopened and checked.

Sources: [Understanding SC 1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html); [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html)

Link: https://uxreference.com/forms/labels#rule-3

#### Rule 4. Moderate

Keep the label available while the person types and after the field is filled. Do not use text inside the field that disappears as its only label.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Recognition over recall

Why: 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.

Sources: [Mobile forms, avoid inline labels](https://baymard.com/blog/mobile-forms-avoid-inline-labels); [Placeholders in Form Fields Are Harmful](https://www.nngroup.com/articles/form-design-placeholders/); [Text input component (GOV.UK Design System)](https://design-system.service.gov.uk/components/text-input/); [Text input usage (Carbon Design System)](https://www.carbondesignsystem.com/components/text-input/usage); [TextField (Shopify Polaris)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/text-field.mdx)

Link: https://uxreference.com/forms/labels#rule-4

#### Rule 5. Moderate

Place each label closer to its own field than to any other field.

- Applies when: Always.
- Based on: Convention
- Principle: Make controls match their effects

Why: Convention across GOV.UK, Carbon, Primer and NN/g, with one eight-person eye-tracking study. No controlled test of distance, so 3.

Sources: [Form Design Quick Fix: Group Form Elements Effectively Using White Space](https://www.nngroup.com/articles/form-design-white-space/); [Text input component (GOV.UK Design System)](https://design-system.service.gov.uk/components/text-input/); [Text input usage (Carbon Design System)](https://www.carbondesignsystem.com/components/text-input/usage); [FormControl component (GitHub Primer, docs source on GitHub)](https://raw.githubusercontent.com/primer/design/main/content/components/form-control.mdx); [Web form design guidelines: an eyetracking study](https://www.cxpartners.co.uk/our-thinking/web_forms_design_guidelines_an_eyetracking_study/)

Link: https://uxreference.com/forms/labels#rule-5

#### Rule 6. Weak

Use a hidden label only where a single field's purpose is plain from what surrounds it, such as a lone search field, and still expose the label to software.

- Applies when: The form is a single field whose purpose is evident.
- Based on: Convention
- Principle: Leave out what is not needed

Why: Baymard and three design systems allow it under conditions they describe differently; Primer gives no rule. Rated 2.

Sources: [Mobile forms, avoid inline labels](https://baymard.com/blog/mobile-forms-avoid-inline-labels); [TextField (Shopify Polaris)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/text-field.mdx); [Text input usage (Carbon Design System)](https://www.carbondesignsystem.com/components/text-input/usage); [FormControl component (GitHub Primer, docs source on GitHub)](https://raw.githubusercontent.com/primer/design/main/content/components/form-control.mdx)

Link: https://uxreference.com/forms/labels#rule-6

#### Rule 7. Unsettled

Whether labels work better above the field or beside it is unsettled.

Until the evidence settles, use this default: Put the label above the field.

- Applies when: Always.
- Based on: Research
- Principle: Make controls match their effects

Why: 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.

Sources: [Label Placement in Forms](https://www.uxmatters.com/MT/archives/000107.php); [Using eye-tracking to evaluate label alignment in online forms](https://napier-repository.worktribe.com/OutputFile/232504); [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 read](https://unpaywall.org/10.1007%2F978-3-030-22012-9_34); [Form Design Quick Fix: Group Form Elements Effectively Using White Space](https://www.nngroup.com/articles/form-design-white-space/); [Text input component (GOV.UK Design System)](https://design-system.service.gov.uk/components/text-input/); [Label placement in forms: what's best?](https://www.effortmark.co.uk/label-placement-forms-whats-best/)

Link: https://uxreference.com/forms/labels#rule-7

#### Rule 8. Unsettled

Whether a label that starts inside the field and moves out of the way when typing begins (a floating label) is as good as a label outside the field is unsettled.

Until the evidence settles, use this default: Use a label outside the field.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Recognition over recall

Why: 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.

Sources: [Floating labels in checkout (Growth A/B tests)](https://fundraiseup.com/experiments/floating-labels-in-checkout/); [Placeholders in Form Fields Are Harmful](https://www.nngroup.com/articles/form-design-placeholders/); [Mobile forms, avoid inline labels](https://baymard.com/blog/mobile-forms-avoid-inline-labels); [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 read](https://unpaywall.org/10.1007%2F978-3-030-22012-9_34); [Text field (Material Web component docs)](https://raw.githubusercontent.com/material-components/material-web/main/docs/components/text-field.md)

Link: https://uxreference.com/forms/labels#rule-8

## Accessibility requirements

- WCAG 2.2, 1.3.1 Info and Relationships (A): the label-to-field relationship is available to software. It sets no rule on label position. (https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html)
- WCAG 2.2, 3.3.2 Labels or Instructions (A): fields that take input have labels or instructions. (https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html)
- WCAG 2.2, 2.5.3 Label in Name (A): the 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. (https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)
- Also likely to apply: 4.1.2 Name, Role, Value. (https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)

## Common mistakes

- Placeholder text as the only label ([rule 4](https://uxreference.com/forms/labels#rule-4)). See [Placeholder text](https://uxreference.com/forms/placeholder).
- A visible label with a different name exposed to software, so that speaking the label does nothing ([rule 2](https://uxreference.com/forms/labels#rule-2)).

## Still open

- Above or beside? See [rule 7](https://uxreference.com/forms/labels#rule-7). No study has enough participants to settle it, and none tests long forms or translated labels.
- Floating labels. See [rule 8](https://uxreference.com/forms/labels#rule-8). No independent controlled comparison with an outside label was found.
- Whether clicking a label moves focus to its field depends on the platform (HTML standard); no usability evidence was read on it.

## Related problems

- [Placeholder text](https://uxreference.com/forms/placeholder): Do not use placeholder text as a label or for instructions. Put both outside the field.
- [Required and optional fields](https://uxreference.com/forms/required-optional): Mark at each field whether it is required, and require only what the task cannot do without.
- [Stating format requirements](https://uxreference.com/forms/format-requirements): Remove format rules where you can. Where you cannot, state them before people type.

## Sources

- [Understanding SC 1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html). W3C WAI, 2026, normative standard (Understanding document).
- [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html). W3C WAI, n.d., normative standard (Understanding document).
- [HTML Living Standard, the label element](https://html.spec.whatwg.org/multipage/forms.html#the-label-element). WHATWG, n.d., normative standard.
- [Understanding SC 2.5.3 Label in Name](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html). W3C WAI, 2026, normative standard (Understanding document).
- [Mobile forms, avoid inline labels](https://baymard.com/blog/mobile-forms-avoid-inline-labels). Baymard Institute, 2013, observations from mobile e-commerce usability testing.
- [Placeholders in Form Fields Are Harmful](https://www.nngroup.com/articles/form-design-placeholders/). Katie Sherwin, Nielsen Norman Group, 2014, practitioner article citing unspecified user testing and eye-tracking; mostly reasoned from observed problems.
- [Text input component (GOV.UK Design System)](https://design-system.service.gov.uk/components/text-input/). Government Digital Service, GOV.UK, n.d., component documentation.
- [Text input usage (Carbon Design System)](https://www.carbondesignsystem.com/components/text-input/usage). IBM, n.d., component documentation.
- [TextField (Shopify Polaris)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/text-field.mdx). Shopify, n.d., component documentation (GitHub markdown).
- [Form Design Quick Fix: Group Form Elements Effectively Using White Space](https://www.nngroup.com/articles/form-design-white-space/). Marieke McCloskey, Nielsen Norman Group, 2013, expert article with example forms.
- [FormControl component (GitHub Primer, docs source on GitHub)](https://raw.githubusercontent.com/primer/design/main/content/components/form-control.mdx). GitHub, n.d., component documentation.
- [Web form design guidelines: an eyetracking study](https://www.cxpartners.co.uk/our-thinking/web_forms_design_guidelines_an_eyetracking_study/). cxpartners, n.d., eye-tracking usability test of four existing registration forms (Gmail, Hotmail, Yahoo Mail, eBay), counterbalanced, two forms per participant.
- [Label Placement in Forms](https://www.uxmatters.com/MT/archives/000107.php). Matteo Penzo (UXmatters), 2006, ad hoc eye-tracking usability tests of four form layouts, reported in an expert article.
- [Using eye-tracking to evaluate label alignment in online forms](https://napier-repository.worktribe.com/OutputFile/232504). Subhrajit Das, Tom McEwan, Donna Douglas, 2008, within-subjects eye-tracking lab experiment (Tobii 1720), pseudo-random form order, questionnaires.
- [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 read](https://unpaywall.org/10.1007%2F978-3-030-22012-9_34). US Census Bureau authors (names, exact title and year not shown on the page read; data collected late 2016 to summer 2018; Springer chapter DOI 10.1007/978-3-030-22012-9_34), n.d., between-subjects lab experiment (Experiment 1, labels) on Census-owned iPhones, one-on-one sessions.
- [Label placement in forms: what's best?](https://www.effortmark.co.uk/label-placement-forms-whats-best/). Effortmark (author not stated; draws on Jarrett and Gaffney), n.d., expert essay summarizing Penzo 2006.
- [Floating labels in checkout (Growth A/B tests)](https://fundraiseup.com/experiments/floating-labels-in-checkout/). Fundraise Up, 2024, 45-day online A/B/C test in the company's own donation checkout modal.
- [Text field (Material Web component docs)](https://raw.githubusercontent.com/material-components/material-web/main/docs/components/text-field.md). Material Design, material-web repository, n.d., component documentation (GitHub markdown).

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
