Creating a text area

To create the text area, use the following HTML tag:

<textarea name="name" rows="value" cols="value">
default text
</textarea>

where name identifies the field containing the text area, the rows and cols attributes specify the number of lines in the text area and the number of characters in each line, and default text (optional) is the text originally displayed in the text area.

The additional (Transitional HTML only) attribute

wrap="option"

controls the text wrapping in the text area. This attribute can take on the following values: off (for removing the text wrapping), soft (for turning the wrapping on; default value; the line-wrapping information is not send to the server), and hard (for turning the wrapping on and sending the line-wrapping information to the server).

Layout
Comments?
HTML tags
<form>
Comments? <br>
<textarea name="comments" rows="7" cols="50">Please put your
comments here.
</textarea>
</form>

Try how it works: