Next / Previous / Contents / TCC Help System / NM Tech homepage

11. Multi-line text areas

The <textarea> tag allows you to specify an area where any number of lines of text can be entered:

<textarea name="fieldName" rows="nRows" cols="nCols">
  default text
</textarea>

where:

fieldName

is an internal name that will be passed to the downstream CGI script as the name of this element.

nRows

is the number of rows in the window. This does not limit the amount of text that can be entered; it merely specifies the window size. The default value is 2.

nCols

is the number of text columns in the window. The default value is 20.

default text

The text inside the <textarea> element appears initially inside the text area on the form. This is a good place to put instructions such as “Enter your comments here.”