Please visit our sponsors !
The <textarea> tag
Definition and Usage
Defines a text-area (a multi-line text input control). A user can write text
in the text-area. In a text-area you can write an unlimited number of
characters. The default font in the text-area is fixed pitch.
Examples
This code: |
Produces this output: |
<textarea rows="2" cols="20">
The cat was playing in the garden. Suddenly a dog showed up.....
</textarea> |
|
Required Attributes
Attributes: |
Values: |
Description: |
cols |
number |
The width of the textarea, in characters |
rows |
number |
The height of the textarea, in rows |
Optional Attributes
Attributes: |
Values: |
Description: |
disabled |
disabled |
Disables the textarea |
name |
textarea_name |
Sets the name of the textarea |
readonly |
readonly |
The user can not change the value in the textarea |
wrap |
soft
hard
off |
Deprecated. Do not use it |
Standard Attributes
id, class, title, style, dir, lang, tabindex |
For a full description, go to Standard
Attributes.
Event Attributes
onfocus, onblur, onselect, onchange, onclick, ondblclick,
onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress,
onkeydown, onkeyup |
For a full description, go to Event Attributes.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|