X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <textarea> rows Attribute

HTML textarea Tag Reference HTML <textarea> tag

Example

A text area with a specified height and width:

<textarea rows="4" cols="50">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The rows attribute is supported in all major browsers.


Definition and Usage

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

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


Differences Between HTML 4.01 and HTML5

NONE.


Syntax

<textarea rows="number">

Attribute Values

Value Description
number Specifies the height of the text area (in lines). Default value is 2


HTML textarea Tag Reference HTML <textarea> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook