Learn HTML Code Tutorial Reference Guide

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.




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial