Atribut HTML cols
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.
Platí pro
Atribut
cols
lze použít pro následující prvek:
Prvky | Atribut |
---|---|
<textarea> | sloupce |
Příklad
Příklad textové oblasti
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>
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
cols | Yes | Yes | Yes | Yes | Yes |