Placeholder text
Hint text inside a field disappears as soon as people start typing, just when they need it.
The answer
Do not use placeholder text as a label or for instructions. Put both outside the field. As strong as the weakest rule behind it: moderate.
-
Don’t use placeholder text as the only label.
NN/g and Baymard report the same problems from testing without giving numbers; GOV.UK, USWDS, Carbon and the W3C tutorial agree. Follows from working memory limits. 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
- A form whose labels are all placeholders: people lose track of what each filled field was (rule 1).
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- StandardStandard: Form instructions (WAI Web Accessibility Tutorials)W3C Web Accessibility Initiative, 2024
- 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
-
Put instructions and format rules outside the field, where they stay visible.
Consistent practitioner guidance; one controlled study of date fields found an in-field hint did not cut format errors and was rated least comfortable. Rated 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
- A required format shown only as placeholder text (rule 2).
- ExperimentExperiment: Working towards usable forms on the World Wide Web: optimizing date entry input fieldsBargas-Avila, 2011
- StandardStandard: Form instructions (WAI Web Accessibility Tutorials)W3C Web Accessibility Initiative, 2024
- 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
The other rules
-
Never let placeholder text look like, or be submitted as, a real answer.
One form's logs showed 98 to 99% of submissions kept the hint as the value, from a pre-2010 implementation; NN/g reports people skipping fields that look filled. Rated 2.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Prevent errors
- Field dataField data: Don't put hints inside text boxes in web formsCaroline Jarrett, 2010
- GuidanceGuidance: Placeholders in Form Fields Are HarmfulKatie Sherwin, 2014
-
Leave the field empty, and put any example outside it.
Baymard and Carbon allow it; GOV.UK forbids it; Baymard also reports most people ignored format examples; a controlled study found an example alone weaker than a stated rule. Rated 1.
- Applies when
- A visible label is present.
- Based on
- Practitioner research
- Principle
- Give help where it is needed
- ExperimentExperiment: Enhancing online forms: use format specifications for fields with format restrictions to help respondentsBargas-Avila, 2011
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- User research: 8 Recommendations for Creating Effective Input FieldsChristian Holst, 2025
- GuidanceGuidance: Text input usage (Carbon Design System)IBM
- Guidance: Text input component (GOV.UK Design System)Government Digital Service
- Guidance: Input masking for restricted form fields (phone, date, card)Edward Scott, 2017
Accessibility
- WCAG 2.2 · 3.3.2 · AA label or instruction must be provided; a placeholder that vanishes is a weak way to meet it.
- WCAG 2.2 · 2.5.3WCAG 2.2, 2.5.3 (A) lets placeholder text count as the visible label when no other label exists.
- Sources report uneven screen reader announcement of placeholders but cite no test. Not rated.
- WCAG 2.2 · 1.4.3Also likely to apply: 1.4.3 Contrast, which the sources say default placeholder styling often fails. Contrast is appearance and out of scope here.
Open questions
- OpenExample placeholders with a visible label present (rule 4).
- OpenNo experiment comparing a placeholder with no placeholder was found. One study with 15 older adults was read only as an abstract.
- OpenShort, familiar forms such as search and sign-in: Baymard and NN/g say the harm is smaller there; untested.
Sources
- ExperimentsExperiment: Working towards usable forms on the World Wide Web: optimizing date entry input fieldsBargas-Avila, 2011
- Experiment: Enhancing online forms: use format specifications for fields with format restrictions to help respondentsBargas-Avila, 2011
- Field dataField data: Don't put hints inside text boxes in web formsCaroline Jarrett, 2010
- User researchUser research: Mobile forms, avoid inline labelsBaymard Institute, 2013
- User research: 8 Recommendations for Creating Effective Input FieldsChristian Holst, 2025
- StandardStandard: Form instructions (WAI Web Accessibility Tutorials)W3C Web Accessibility Initiative, 2024
- 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: Input masking for restricted form fields (phone, date, card)Edward Scott, 2017
Related
- LabelsGive every field a visible label that stays in place while people type.Answer: moderate.
- Stating format requirementsRemove format rules where you can. Where you cannot, state them before people type.Answer: moderate.
- Input masks and formatting as you typeAccept the separators people type and clean them up yourself, and show the expected shape outside the field.Answer: moderate.