Skip to content
BENIBIX Learn

Text Input and Text Area

Level 2 · Getting answers in

The boxes people type into, and how the size of the box sets the size of the answer. Search fields, password fields and when to use each one.

Course contentsLesson 3 of 14

After this lesson you can

  • Pick a one-line or many-line box
  • Build a search field people find
  • Let people see a typed password

9 mincovers 4 glossary entries

Worth reading first: Buttons and Icon Buttons

Which box to use for a typed answer

A text input is a one-line box for a short answer, like a name, a town or a code. A text area is a bigger box with many lines, for a note or a review. The size of the box tells people how much to write. A one-line box asks for a few words. A tall box asks for a few sentences.

Getting this wrong hurts. Type a long message into a one-line box and the words slide out of sight to the left. Nobody can check what they wrote. A text area should show at least three or four lines, and it can grow as the user types more.

The width matters too. A box for a postcode should be short, and a box for a street address should be long. When every box on a form is the same width, people lose this clue and have to read every label more closely.

A search field is a box where you type words to find things. Most have a small magnifying glass icon and rounded ends, so people spot them at once. Put it where people expect it: at the top of the page, often on the right or in the middle.

A password field hides each letter behind a dot as you type. That stops someone reading it over your shoulder. But it also hides typing mistakes. Most good password fields now have a small eye button that shows the text, so people can check before they press Sign in.

Each of these boxes can also tell the phone what kind of keyboard to show. A box for an email gets the at sign on the main keys. A box for a phone number gets a number pad. That small choice saves taps on every form.

The common mistake is to hide a search field behind an icon to save space. People who came to search then have to find the icon first. If search is the main thing people do, show the whole box.

One line against many

A name, a town, a code.

A note, a review, a message.

Keep typing in the left box and watch where the words go.

Write the same sentence in both. One of them was not built for it.

Type the same long sentence into both boxes. Watch where the words go in the one-line box.

Each box is sized and shaped for its answer. The shape alone tells people what to type.

Worked example

A hotel form fixes its review box

A hotel's feedback form asked guests to write a review in a one-line box. Most reviews came back under 10 words long.

The designer swapped it for a text area 5 lines tall. The average review grew to about 40 words, with no other change.

The words for this lesson4

Check yourself

When should you use a text area instead of a text input?

Finished this lesson?

Marking it complete also marks its 4 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.