The search field
People look for a box to type in, and a hidden search, or one emptied on the results page, slows them down.
The answer
Show an open search field, keep the query in it on the results page, and search the whole site. As strong as the weakest rule behind it: weak.
-
Where search is a main way in and there’s room, show an open search box, not just an icon.
NN/g and Baymard report people missing search that is not an open field, without numbers. USWDS and NHS accept a reveal control on small screens, which is why the rule is scoped. Rated 3.
- Applies when
- On devices with a pointer and keyboard.
- Based on
- Practitioner research
- Depends on
- Device and screen
- Principle
- Recognition over recall
- User researchUser research: Search - Visible and Simple (Alertbox)Jakob Nielsen, 2001
- User research: Search field design - prominence of the e-commerce search fieldBaymard Institute, 2014
- GuidanceGuidance: Search bar UI guidance (persisting query, placeholder, scope, width, submit)Baymard Institute, 2026
- Guidance: Search componentU.S. Web Design System, 2026
- Guidance: Search input componentNHS digital service manual
-
On the results page, keep the search terms in the box so people can change them.
Baymard, NN/g and GOV.UK agree. Rated 3.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Keep people in control
- Common mistake
- A search field that empties itself on the results page (rule 3).
- User researchUser research: Search - Visible and Simple (Alertbox)Jakob Nielsen, 2001
- GuidanceGuidance: Search bar UI guidance (persisting query, placeholder, scope, width, submit)Baymard Institute, 2026
- Guidance: Search component (GOV.UK publishing component guide)GOV.UK publishing
-
Search the whole site by default. If you search only part of it, say which part.
NN/g warns that people overlook a narrowed scope; Baymard sees value in a scope chooser on very large catalogs. Conflicting detail, so 2.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Keep people informed
- Common mistake
- A narrowed search scope that is not stated (rule 6).
- User researchUser research: Search scope - letting users search within a categoryChristian Holst, 2014
- GuidanceGuidance: Limiting Search Boundaries (scoped search)Katie Sherwin, 2015
The other rules
-
Give the search field a label screen readers can read.
WCAG 2.2 level A. Reopened and checked. The ARIA guide adds a search landmark around the field, which is guidance.
- Applies when
- Always.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardsStandard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
- Standard: Understanding SC 1.3.1 Info and RelationshipsW3C WAI, 2026
- Standard: Search Landmark example (ARIA Authoring Practices Guide)W3C WAI, 2023
-
Let people search with Enter and with a visible button.
Baymard reports confusion on phones where one of the two was missing, though most testers submitted from the keyboard. Rated 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Let practiced people go faster
- User researchUser research: Mobile search - include a submit button next to the fieldSally Collins, 2021
- GuidanceGuidance: Search componentU.S. Web Design System, 2026
- Guidance: Search input componentNHS digital service manual
-
Make the box wide enough to show a typical search in full.
One 19-student experiment found a longer field drew longer queries, at borderline significance, with no measure of success. Rated 2.
- Applies when
- Always.
- Based on
- Research
- Principle
- Make controls match their effects
- ExperimentExperiment: Verbosity and Interface DesignKristofer Franzen and Jussi Karlgren, 2000
- User researchUser research: Search - Visible and Simple (Alertbox)Jakob Nielsen, 2001
- GuidanceGuidance: Search bar UI guidance (persisting query, placeholder, scope, width, submit)Baymard Institute, 2026
Accessibility
Open questions
- OpenNo published online experiment on the search field itself was found; one third-party claim about a company's test was skipped.
- OpenReveal control or open field on small screens: sources differ.
- OpenScope choosers: sources differ.
Sources
- ExperimentExperiment: Verbosity and Interface DesignKristofer Franzen and Jussi Karlgren, 2000
- User researchUser research: Search - Visible and Simple (Alertbox)Jakob Nielsen, 2001
- User research: Search field design - prominence of the e-commerce search fieldBaymard Institute, 2014
- User research: Mobile search - include a submit button next to the fieldSally Collins, 2021
- User research: Search scope - letting users search within a categoryChristian Holst, 2014
- StandardsStandard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
- Standard: Understanding SC 1.3.1 Info and RelationshipsW3C WAI, 2026
- Standard: Search Landmark example (ARIA Authoring Practices Guide)W3C WAI, 2023
- GuidanceGuidance: Search bar UI guidance (persisting query, placeholder, scope, width, submit)Baymard Institute, 2026
- Guidance: Search componentU.S. Web Design System, 2026
- Guidance: Search input componentNHS digital service manual
- Guidance: Search component (GOV.UK publishing component guide)GOV.UK publishing
- Guidance: Limiting Search Boundaries (scoped search)Katie Sherwin, 2015
Related
- Query suggestionsPut the most likely suggestions first, and keep what people typed in the field.Answer: moderate.
- Results pagesPut the best match first, and make each summary say what the item really is.Answer: weak.
- LabelsGive every field a visible label that stays in place while people type.Answer: moderate.
- Field width as a hintSize each field to the length of the answer you expect.Answer: moderate.