English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The rows attribute specifies the visible height of the text area in rows. The size of textarea can also be specified through CSS height and width properties.
Text area with specified height and width:
<textarea rows="5" cols="50" > Enter text here... </textarea>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the rows attribute.
The rows attribute specifies the visible height of the text area in rows.
Note: The size of textarea can also be specified through CSS height and width properties.
None.
<textarea rows="number">
Value | Description |
---|---|
number | Specify the height of the text area (in rows). The default value is2 |