Textarea
The textarea element creates a multi-line text input field, allowing users to enter longer text entries.
textarea
The <textarea>
and </textarea>
element defines a multi-line text input field.
This element is often used in a form, to collect user inputs like comments or reviews.
Attribute | Description |
---|---|
rows | Specifies the visible number of lines in a text area. |
cols | Specifies the visible width of a text area. |
<form>
<label for="msg">Message:</label> <br />
<textarea name="msg" id="msg" rows="10" cols="20"></textarea>
</form>
Edit on GitHub
Last updated on