HTML <textarea> cols attribute
HTML <textarea> tag
Example
A text area with 3 rows and a width of 25 characters:
<textarea rows="3" cols="25">
At W3Schools you will find all the Web-building tutorials you need, from
basic HTML to advanced XML, SQL, ASP, and PHP.
</textarea> |
Try it yourself!
|
Definition and Usage
The cols attribute specifies the visible width of a text area.
Browser Support

The cols attribute is supported in all major browsers.
Syntax
Attribute Values
Value |
Description |
number |
Sets the width of the text area (in average character
widths) |
HTML <textarea> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|