HTML CSS Reference/HTML Attributes Reference/cols textarea
"cols" Example
<HTML>
<head><Title>Example For cols</Title></head>
<BODY>
<textarea cols="10" rows="10">
This is a sample text containing more than the 10 characters specified.
</textarea>
<textarea cols="10" rows="10">1234567890</textarea>
</BODY>
</HTML>
cols is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<pre> (NN4 only) <textarea> |
+----------------+--------------------------------------------------------------+
"cols" Syntax and Note
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.
Syntax:
<element cols="value"> . . . </element>