Idocs Guide to HTML

Attributes for <TEXTAREA ...>
COLS
ROWS

Usage Recommendation
thumbs up use it

COLS indicates how many characters (not pixels) wide the text area should be. ROWS indicates how many rows should be in the text area. Both attributes are required in the <TEXTAREA ...> tag. These attributes do not set any limit on how much can be typed in, just how much of the textarea is visible.

Here's a comparison between some small and large values of these attributes:


<TEXTAREA NAME="few" COLS=10 ROWS=2></TEXTAREA>


<TEXTAREA NAME="some" COLS=50 ROWS=5></TEXTAREA>


<TEXTAREA NAME="lot" COLS=80 ROWS=20></TEXTAREA>


While the values you choose depend on the situation, we usually find that COLS and ROWS (the second example) give a nice typing space without taking up too much page. Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.