CA Resources

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.

AttributeDescription
rowsSpecifies the visible number of lines in a text area.
colsSpecifies 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>

On this page

Edit on GitHub