# Search Field

> A box where you type words to find things.

**Field:** Design  
**Category:** User Interface  
**Also known as:** Search Box, Search Bar, Search Input

## Think of it like

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

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

- **Type to find.** Words, not menus.
- **Forgive slips.** Match close spellings.
- **Keep the words.** Easy to change.

## Related terms

- [Text Input](https://learn.benibix.com/term/design/text-input)
- [Combobox](https://learn.benibix.com/term/design/combobox)
- [Command Palette](https://learn.benibix.com/term/design/command-palette)

## Taught in

- [Text Input and Text Area](https://learn.benibix.com/learn/design-user-interface/text-input-and-text-area): UI Components, 3/14

---

Source: https://learn.benibix.com/term/design/search-field
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
