HTML
Example
a text area with the specified height and width:
Try it »
Browser support





All major browsers support the cols property.
Definition and Usage
The cols attribute specifies the visible width of the text area.
Note: The size of the textarea can also be set with the CSS height and width properties.
Differences between HTML 4.01 and HTML5
none.
Syntax
Attribute values
| Value | Description |
|---|---|
| number | Specifies the width of the text area (in average character widths). The default value is 20. |
HTML