cols

LANSA WAM

cols

Specifies the visible width, in characters, of the <textatea> element. This only specifies the visible width of the input, not the length of data that can be entered. See the maxlength property to limit the length of entered data.

The cols value is measured in numbers of characters. Each browser has slightly different techniques for determining how to convert this number into an actual number of pixels on screen. For more accurate control of the width of the <textarea>, use CSS to set the width.

Default value

Blank - the browser uses its own default size, usually around 20.

Valid values

Any integer value.