Textarea
Component preview
A labeled control for entering or editing free-form text across multiple lines.
Build pack
Choose the task and destination. Technical names stay in English.
In your own words
Documented aliases: multiline field, comment box, long text input
Try it
Compare all three behaviors
Shared comparison scenario: A form collects text, with field length and submission intent determining the appropriate input control.
This context stays fixed. Switch concepts to observe the mission, edge case, and specimen specific to each behavior.
Textarea
Textarea accepts line breaks and longer free-form content; Text field is single-line, while Search field is a query input with search submission behavior.
Your task
Write two paragraphs, resize the field, exceed the limit, and recover without losing the draft.
Edge case to verify
At the character limit, input and pasted text are handled consistently and a specific linked error preserves the full draft.
Mission
Write two paragraphs, resize the field, exceed the limit, and recover without losing the draft.
Select a marker directly on the specimen, or use the list below, to see its role. Hide the markers to operate the lab without obstruction.
Label
The persistent text that names a control or field.
Enter multiple lines
Enter inserts a new line, and the control can grow or scroll without hiding its label.
Explain validation
A specific inline message identifies the invalid field and explains how to correct it.
Draft within limit
Draft within limit
Draft over limit
Draft over limit
Draft within limit → Draft over limit
Typing or pasting takes the preserved multiline draft above 500 characters.
Draft over limit → Draft within limit
Editing the preserved draft back to 500 characters or fewer resolves the linked error.
label with textarea
Equivalence caveat: The native multiline control preserves Enter for line breaks, resize behavior, and form semantics while labels and errors stay associated.
Verify binding sourceWHATWG · standard · 2026-07-16
Claim covered: Textarea: native multiline text entry, labeling, value, wrapping, and form participation.
WHATWG · standard · 2026-07-16
Claim covered: Textarea: native form controls, labels, submission, validation, and disabled-state behavior.
Verified on 2026-07-16 · rev. 1