HTML textarea rows Attribute

How to create a textarea with specific height in html

Posted by Raquel Crist on December 19, 2022

HTML textarea rows Attribute

How to create a textarea with specific height in html

Posted by Raquel Crist on December 19, 2022

In HTML, the row attribute is used to set the height of the textarea.

It is used to show the number of visible lines of text in the textarea.

You will also see the height difference based on the number of rows specified.

If the row attribute is not used the default value is 2.

Here is an example below:

<textarea rows="5">
Wecode101 is a platform for short coding tutorials
</textarea>

 

Any question?
This field is required
Your question have been successfully submitted and will be reviewed before published
Please login to ask a question