You are here: Reference > HTML > attributes > rows (textarea)

rows attribute (textarea)

Browser support:
Sets the number of visible rows within a textArea element.
The height is calculated by the average character heights. You can set the dimensions of textarea with the width and the height style properties.
JavaScript page for this attribute: rows. You can find other example(s) there.

Possible values:

Integer that sets the number of visible rows.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the rows attribute:
<textarea rows="3">Some text content</textarea>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content