HTML <textarea> wiersze Atrybut
Przykład
Obszar tekstowy o określonej wysokości i szerokości:
<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>
Definicja i użycie
rows
Atrybut określa widoczną wysokość obszaru tekstowego w liniach .
Uwaga: Rozmiar obszaru tekstowego można również określić za pomocą właściwości CSS height i width.
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
rows | Yes | Yes | Yes | Yes | Yes |
Składnia
<textarea rows="number">
Wartości atrybutów
Value | Description |
---|---|
number | Specifies the height of the text area (in lines). Default value is 2 |
❮ Znacznik HTML <textarea>