Atribut HTML <textarea> cols
Contoh
Area teks dengan tinggi dan lebar tertentu:
<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>
Definisi dan Penggunaan
Atribut cols
menentukan lebar yang terlihat dari area teks.
Tip: Ukuran area teks juga dapat diatur oleh properti tinggi dan lebar CSS.
Dukungan Peramban
Attribute | |||||
---|---|---|---|---|---|
cols | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<textarea cols="number">
Nilai Atribut
Value | Description |
---|---|
number | Specifies the width of the text area (in average character width). Default value is 20 |
tag HTML <textarea>