TEXTAREA


The text area allows for one or more lines of text to be entered by the viewer. It uses the following syntax:

<TEXTAREA NAME="name of variable" ROWS="number of rows" COLS="number of columns">

Where TEXTAREA specifies the input is to be an area of text.

The NAME is the name of the variable. For example, NAME="description". The user would input a long character string such as a few sentences describing of an object. This long character string would be the value assigned to the name of the variable "description".

ROWS specifies the number of rows of characters in the text area, and COLS specifies the number of columns, or characters in each row, in the text area.

These are required attributes, as is the </TEXTAREA> tag. Note that this is different than text box which did not require an ending tag.


Here is a basic example:
Please list your favorite foods:<BR>
<TEXTAREA NAME="foods" ROWS="3" COLS="40">
</TEXTAREA>

It generates a text area that looks like this:
Please enter your favorite foods:

I understand TEXTAREA. Are there other ways to input data into a form?

[INDEX] [PREVIOUS] [NEXT PAGE] [CHAPTER 9]

Valid HTML 3.2!