HTML CSS Reference/HTML Attributes Reference/cols textarea

Материал из Web эксперт
Перейти к: навигация, поиск

"cols" Example

<head><Title>Example For cols</Title></head>
<textarea cols="10" rows="10">
This is a sample text containing more than the 10 characters specified.
<textarea cols="10" rows="10">1234567890</textarea>

cols is applied to

| Applied_To     |<pre> (NN4 only)                <textarea>                    |

"cols" Syntax and Note

It specifies the maximum number of characters that can fit on a single 
line of a <pre> or <textarea> element.
In the <textarea> element, the width of the element will be set to the 
number of cols specified.
<element cols="value"> . . . </element>