HTML <textarea> Atribut cols
Příklad
Textová oblast se zadanou výškou a šířkou:
<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>
Definice a použití
Atribut cols
určuje viditelnou šířku textové oblasti.
Tip: Velikost textové oblasti lze také nastavit pomocí vlastností CSS height a width.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
cols | Yes | Yes | Yes | Yes | Yes |
Syntax
<textarea cols="number">
Hodnoty atributů
Value | Description |
---|---|
number | Specifies the width of the text area (in average character width). Default value is 20 |
❮ HTML tag <textarea>