Easy Tutorial
❮ Att Track Index Att Font Size ❯

HTML <textarea> cols Attribute

HTML <textarea> Tag

Example

A text area with specified height and width:


Browser Support

All major browsers support the cols attribute.


Definition and Usage

The cols attribute specifies the visible width of a text area.

Note: The size of the textarea can also be set by the height and width properties of CSS.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
number Specifies the width of the text area (measured in average character width). The default value is 20.

❮ Att Track Index Att Font Size ❯