🖼️Text Area
Also known as Textarea, Multi-Line Text Field, Comment Box
A big box with many lines. It is for long answers.
Think of it like
It is like a blank page instead of a blank line. There is room to write a lot.
Example
A review form swaps a one-line box for a tall text area. Reviews get twice as long.
Why it matters
Its size is a hint. A big box invites a full answer.
Definition
Example code
html
<label for="msg">Your message</label>
<textarea id="msg" rows="5"></textarea>Try it
The box
0 / 180
A counter is worth having only when there is a limit.
Write a review in each. The small window is the one people give up on.
Common mistake
Key takeaways
- 1Many lines. For long answers.
- 2Size is a hint. Tall box, long answer.
- 3Let it grow. Room as people type.