Assignment 6: Forms
Columns and Rows
You can specify the number of
rows through the appropriate attributes. This changes the size of the displayed element, as well as how text will look when typed.
colsis the width of the textarea in character widths (i.e. this is the number of characters that will fit from left to right).
rowsis the number of visible lines.
<p> Comments or Concerns: <textarea name="comments" id="test-textarea" cols="20" rows="4">Enter up to 500 characters...</textarea> </p>
Comments or Concerns:
NOTE: Typically, and as is the case with many size parameters that you can set in HTML, you should override these parameters with CSS.