Textarea
Textarea
DescriptionTwo 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
Textarea Initial Value
DescriptionInitial 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
Advertisements