The Textarea Tag

ken's picture

Opening tag : <Textarea>
Closing tag: </Textarea>

Purpose:
A textarea is used on a form to collect multiple lines of text from a user.

Attributes:
Accesskey=char
- Sets a shortcut key to access the field. On windows a user would press ALT and the shortcut key to jump to the textarea field.

Cols=#
- Sets the number of columns in the textarea.

Disabled
- Prevents the field from being filled in.

Name=name
- Provides a name for the textarea, which is then used to pass the contents to a further field.

Event=Javascript
- Allows a javascript to be assigned to an event.

Readonly
- Prevents the user from changing the content.

Rows=#
- Specifies the number of rows in the textarea.

Example:

<Form action="comments.php" method="POST">
<Textarea name="comments" rows="5" cols"20">
</Textarea>
<Input type="submit" Value="Submit">
</Form>

Related Tags:

<Form></Form> - Form Tag.
<INPUT> - Input Tag.
<Select></Select> - Select Tag.

Back to:
Alphabetical Guide
Guide By Type