<textarea>

The textarea element is a multi-line plain-text input control.

Since HTML 2.0 Spec ↗

Syntax

<textarea name="field" rows="4"></textarea>

Examples

<label for="bio">Bio</label>
<textarea id="bio" name="bio" rows="4" maxlength="200"></textarea>
Output
Renders a four-row resizable text box that accepts up to 200 characters.

Notes

The initial value goes between the tags, not in a value attribute. Control resizing with the CSS resize property and limit length with maxlength.

Browser & runtime support

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12

See also