Horje

How to add HTML <textarea> rows Attribute with label Tag

A text area with a specified height and width.

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.


Browser Support

Syntax

<textarea rows="number">

Attribute Values

Value Description
number Specifies the height of the text area (in lines). Default value is 2
index.html
Example: HTML
<label for="text">Type</label><br>
<textarea rows="4" cols="50">
At horje.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

Output should be:

How to add HTML <textarea> rows Attribute with label Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin