<textarea>
The textarea element is a multi-line plain-text input control.
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
| Environment | Since version |
|---|---|
| chrome | 1.0 |
| firefox | 1.0 |
| safari | 1.0 |
| edge | 12 |