Easy Tutorial
❮ Att Area Target Att Body Background ❯

HTML <textarea> rows Attribute

HTML <textarea> Tag

Example

A text area with specified height and width:


Browser Support

All major browsers support the rows attribute.


Definition and Usage

The rows attribute specifies the visible height of a text area, in rows.

Note: The size of the textarea can also be set by the CSS properties height and width.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
number Specifies the height of the text area (in rows). The default value is 2.

❮ Att Area Target Att Body Background ❯