HTML rows attribute
rows attribute decides the height of the text area. rows attribute represents the number of lines.
<textarea cols="25" rows="9">
It is textarea. It is editable and resizeable by default.But the size can be fixed.
</textarea>
</>
Attribute values
All possible values of rows attributeThe value of rows attribute is a valid positive integer. The default value for rows attribute is '2'.
<textarea> Here the cols and rows attributes are not specified. But both cols and rows have 20 and 2 value respectively. </textarea>
Try </>
The height attribute may be used to define the height of the textual area.
<textarea style="height:500px; width:500px;"> The height of textarea is specified by the height attribute. </textarea>
Try </>
Related Tags
The tags that support rows attribute<textarea> tag
-
The textarea supports the rows attribute.
Next Previous
Was this article helpful?