HTML Attributes
HTML rows attribute
Sets approximate visible textarea height in lines. The default is 2; CSS can override the rendered height. Applicable elements include: <textarea>. Check each element’s value rules.
Formal Syntax & Structure
html syntaxhtml
rows="5"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| rows | positive integer | Sets approximate visible textarea height in lines. The default is 2; CSS can override the rendered height. |
Working Example
Example Snippethtml
<label>Comment <textarea rows="5"></textarea></label>