Skip to main content

Home Forms Text field

Text field

A single-line input where the user types a short value.

A text field is the most common input control — a thin rectangle that holds one line of text. Names, email addresses, search terms, and short answers all live in text fields.

Good text fields are tall enough to tap on mobile, have a clear label above, and show helpful placeholder text only as a hint. Never use placeholder as a replacement for the label — it disappears when the user starts typing.

Most fields in a form are required, so mark the few optional ones with "(optional)" instead of starring every required label. Fewer red asterisks, less visual noise, less chance the user feels trapped.

Related terms