HTML
Example
a text area with the specified height and width:
Try it »
Browser support





All major browsers support the rows property.
Definition and Usage
The rows attribute specifies the visible height of the text area, in lines.
Note: The size of the textarea can also be set with the CSS height and width properties.
Differences between HTML 4.01 and HTML5
none.
Syntax
Attribute values
| Value | Description |
|---|---|
| number | Specifies the height of the text area (in number of lines). The default value is 2. |
HTML