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.
JavaScript page for this attribute: cols. You can find other example(s) there. |
Possible values:
Integer that sets the width in characters.
Default: 20.
Example HTML code 1:
This example illustrates the use of the cols attribute:
|
||||
<textarea cols="40"> The cols attribute of the textarea element sets the width of the object. </textarea> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
User Contributed Comments