HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Checkbox
Disable a Field
Field Length
Field Size
Hidden Field
Image Button
Initial Value
Password Field
Radio Button
Reset Button
Selection List
Submit Button
Text Field
Textarea
Textarea
295
Textarea
Description
Two tags mark off a text area. The starting tag is <TEXTAREA NAME="X" ROWS="Y" COLS="Z"> and the closing tag is </TEXTAREA>. X is replaced with the name of the text area. Y is replaced with the number of rows (vertical) you want in the text area. Z is replaced with the number of columns (horizontal) you want in the text area.
Code
<FORM METHOD="POST" ACTION="script.cgi">
<TEXTAREA NAME="area1" ROWS="5" COLS="30">
</TEXTAREA>
</FORM>
Output
n/a
Practice
<FORM METHOD="POST" ACTION="script.cgi"> <TEXTAREA NAME="area1" ROWS="5" COLS="30"> </TEXTAREA> </FORM>
Textarea Initial Value
Description
Initial value is what is already in the field before the user edits it. To specify the initial value for a text area, type in whatever you want the initial value to be, between the two text area tags.
Code
<FORM METHOD="POST" ACTION="script.cgi">
<TEXTAREA NAME="area1" ROWS="5" COLS="30">
Hello World!
</TEXTAREA>
</FORM>
Output
n/a
Practice
<FORM METHOD="POST" ACTION="script.cgi"> <TEXTAREA NAME="area1" ROWS="5" COLS="30"> Hello World! </TEXTAREA> </FORM>
Advertisements