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

NameTypeDescription
rowspositive integerSets 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>
HTML Reference