# Text Input

> A one-line box where you type a short answer, like your name.

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

## Think of it like

It is like a blank line on a paper form. You write one short answer on it.

## Definition

A text input is a one-line box for a short typed answer, like a name or an email. It has a label above it that says what goes in. Its width hints at how long the answer should be. The right input type can bring up the right phone keyboard, like the @ key for email.

## Example

A sign-up form uses an email input. On a phone, the keyboard shows the @ key right away.

## Example code

```html
<label for="email">Email</label>
<input id="email" type="email" autocomplete="email">
```

The type brings up the email keyboard. The label is tied to the box by its id.

## Why it matters

Most forms are text inputs. Small details in them decide how fast people finish.

## Common mistake

Making every box the same width. A short box for a postcode tells people a short answer is wanted.

## Three principles

- **One short answer.** A single line.
- **Label above.** Always visible.
- **Right type.** Brings the right keyboard.

## Related terms

- [Text Area](https://learn.benibix.com/term/design/textarea)
- [Field Label](https://learn.benibix.com/term/design/field-label)
- [Placeholder Text](https://learn.benibix.com/term/design/placeholder-text)
- [Inline Error Message](https://learn.benibix.com/term/design/inline-error-message)

## 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/text-input
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.
