cols attribute (textarea)
Specifies the width of a textArea, in characters.
The width is determined by the average character width. You can set the dimensions of the textArea with the width and the height style properties.
Integer that sets the width in characters.
Example HTML code 1:
This example illustrates the use of the cols attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments