Skip to content
BENIBIX Learn

Text Input

Design🖼️ User InterfaceForm Controls

Also known as Text Field, Input Field, Text Box

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

Think of it like

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

Example

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

Why it matters

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

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

Try it

Widths

A four character box says: four characters.

Type in them. A box as wide as its answer tells the reader how much is wanted.

Common mistake

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

Key takeaways

  1. 1
    One short answer. A single line.
  2. 2
    Label above. Always visible.
  3. 3
    Right type. Brings the right keyboard.

Learn it properly