Skip to content
BENIBIX Learn

Search Field

Design🖼️ User InterfaceForm Controls

Also known as Search Box, Search Bar, Search Input

A box where you type words to find things.

Think of it like

It is like asking a librarian. You say a few words, and they find the book.

Example

Mia types blu shoe in a shop's search. It still finds blue shoes, and shows them as she types.

Why it matters

On big sites, many people search first and browse only if search fails.

Definition

A search field is a text box for finding things by typing. It often shows a magnifying glass and a clear button. Good search shows matches as you type and forgives small spelling slips. It should keep what you typed after the results load, so you can change it.

Example code

html
<input type="search" aria-label="Search products">
The search type adds a clear button on many browsers and the search key on phones.

Try it

  • Running shoes$64.00
  • Walking boots$89.00
  • Wool socks$12.00
  • Water bottle$18.50
  • Running cap$22.00
  • Rain jacket$110.00

6 of 6 shown, while you type. Nobody pressed enter.

Type three letters. Then misspell one on purpose and watch it still match.

Common mistake

Clearing the box after a search. People must retype to change one word.

Key takeaways

  1. 1
    Type to find. Words, not menus.
  2. 2
    Forgive slips. Match close spellings.
  3. 3
    Keep the words. Easy to change.

Learn it properly