HTML <textarea> cols 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
cols
Atrybut określa widoczną szerokość obszaru tekstowego .
Wskazówka: Rozmiar obszaru tekstowego można również ustawić we właściwościach CSS height i width.
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
cols | Yes | Yes | Yes | Yes | Yes |
Składnia
<textarea cols="number">
Wartości atrybutów
Value | Description |
---|---|
number | Specifies the width of the text area (in average character width). Default value is 20 |
❮ Znacznik HTML <textarea>