HTML | <textarea> rows Attribute
The HTML textarea rows Attribute is used to specify the number of visible text lines for the control i.e the number of rows to display. It also specifies the visible height of the Textarea.
Syntax:
<textarea rows = "value">
Attribute Values:
- number: It specify the height of the Textarea. Its Default value is 2.
Example:
<!DOCTYPE html> <html> <head> <title> HTML Textarea rows Attribute </title> </head> <body> <center> <h1 style="color: green;"> GeeksforGeeks </h1> <h2> HTML Textarea rows Attribute </h2> <!-- Below textarea element has rows attribute assigned to 5 --> <textarea rows="5" cols="23"> This paragraph has number of rows equal to 5. </textarea> </center> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browsers supported by HTML textarea rows Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Apple Safari
- Opera
Recommended Posts:
- HTML | rows Attribute
- HTML | <frameset> rows Attribute
- HTML | DOM Textarea rows Property
- HTML | DOM Table rows Collection
- HTML | rel attribute
- HTML | low Attribute
- HTML | alt attribute
- HTML | min Attribute
- HTML | name Attribute
- HTML src attribute
- HTML | <img> alt Attribute
- HTML | <bdo> dir Attribute
- HTML | dir Attribute
- HTML | for Attribute
- HTML | <img> src Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : shubham_singh



