Syntax

To define the size of a text field you can use cols
and rows attributes, or use height и width CSS properties. To prevent a text field from being resized you can use resize CSS property.

Example

<!DOCTYPE html><html><head><title>Title of the document</title></head><body><form><textareaname="comment"rows="12"cols="35">Send your comments to the author.</textarea><br><inputtype="submit"name="submitInfo"value="Submit"></form></body></html>

In this example we use the <textarea> to define the text field, use name attribute to assign a name to this field (“comment”), use rows attribute to set its height (12 symbols) and cols attribute to set its width (35 symbols).