next up previous contents
Next: An Example Form Up: Laying Out Forms Previous: The SELECT Command

The TEXTAREA Command

If you want to allow the user to enter a large amount of text, you could use an <INPUT TYPE=text> tag, but HTML also provides another command - TEXTAREA. TEXTAREA fields automatically have scroll bars on Mosaic, and any amount of text can be entered into them.

TEXTAREA fields must have a NAME attribute, and also must have ROWS and COLS attributes specifying how large the visible area of the TEXTAREA is in characters. TEXTAREA fields, like SELECT fields must have a closing tag:

<TEXTAREA NAME="address" ROWS=4 COLS=60>
Any default contents go here

The default contents must be ordinary text with no HTML formatting commands.

Jon Crowcroft
Wed May 10 11:46:29 BST 1995