HTML <textarea> righe Attributo
Esempio
Un'area di testo con un'altezza e una larghezza specificate:
<textarea rows="4" cols="50">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>
Definizione e utilizzo
L' rows
attributo specifica l'altezza visibile di un'area di testo, in righe.
Nota: la dimensione di un'area di testo può essere specificata anche dalle proprietà di altezza e larghezza del CSS.
Supporto del browser
Attribute | |||||
---|---|---|---|---|---|
rows | Yes | Yes | Yes | Yes | Yes |
Sintassi
<textarea rows="number">
Valori di attributo
Value | Description |
---|---|
number | Specifies the height of the text area (in lines). Default value is 2 |
❮ Tag HTML <textarea>