# Form Field Labels and Errors

> The four pieces around a form field: the label, the gray example, the helper line and the error. What each one does, and which one never to skip.

**Course:** [UI Components](https://learn.benibix.com/learn/design-user-interface)  
**Time:** 10 min

**After this lesson you can:**

- Name the four pieces of a field
- Say why gray example text is no label
- Write an error that says how to fix it

## The four pieces of a form field

A form field is more than a box. Around it sit up to four pieces: a label above it, a gray example inside it, a helper line under it, and an error message when something is wrong. The label is the one you must never skip. Without it, the box is a question with no words.

A field label is the short text that says what the box wants, like Email or Card code. Put it above the box, close to it, so the two read as one pair. A label to the left of the box works on a wide screen but gets squeezed on a phone.

Placeholder text is the faint gray example inside an empty box. It vanishes as soon as you type. That is the problem with using it as the label. Once the user starts typing, the question is gone, and they cannot check what was asked. Gray text is also often too faint to read.

Helper text is a short line under the box that explains how to answer. The three digits on the back is helper text for a card code. It stays on the screen while the user types, which is why it is the right home for a hint.

An inline error message sits right under the field that went wrong. It should say how to fix it, not just that it failed. The code is three digits helps. Invalid input does not. Show the error after the user leaves the field, not while they are still typing.

Color alone is not enough for an error. About 1 in 12 men has some kind of color blindness, and red may look like any other color to them. Add an icon or the word error, and keep the message in plain text next to the field.

The common mistake is to show every error at the top of the page. The user then has to read the list, find each field and remember the rule. An error next to its field does all three jobs in one place.

![One form field. Above the box, the label Card code. Inside the box, the gray placeholder 123. Under it, the helper text The three digits on the back, and under that, the error The code is three digits in a stronger color. Lines point to each piece and name it.](https://learn.benibix.com/diagrams/ui-field-anatomy.svg)

### Example: A sign-up form loses its gray labels

A shop's sign-up form used gray placeholders as its only labels. About 1 in 4 users who made a mistake gave up before they finished.

The team added a label above each box and moved the hints into helper lines. Errors now appeared under each field. The number who gave up dropped by almost half.

**Words in this lesson:** [Field Label](https://learn.benibix.com/term/design/field-label), [Placeholder Text](https://learn.benibix.com/term/design/placeholder-text), [Helper Text](https://learn.benibix.com/term/design/helper-text), [Inline Error Message](https://learn.benibix.com/term/design/inline-error-message)

**Question:** Why should placeholder text not be used as the only label?

**Answer:** It vanishes when the user types, so the question is lost. The gray text goes away as soon as typing starts. The user can no longer see what the box asked for. The gray text is often too faint to read anyway.

---

Source: https://learn.benibix.com/learn/design-user-interface/form-field-labels-and-errors
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-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
