Title: Text Area
URL: http://www.activejump.com/m-10.shtml
Email: webmaster@activejump.com
Introduction
A text area, or a text window, is an area on a web page which can be typed into. The text window is special however because
it can be stretched not only horizontally, but also vertically, giving you a much larger area to type into.
Text Area
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.
|
index.html - Notepad |
....<BODY>
<FORM METHOD="POST" ACTION="script.cgi">
<TEXTAREA NAME="area1" ROWS="5" COLS="30">
</TEXTAREA>
</FORM>
</BODY>....
|
|
|
My Homepage - Microsoft Internet Explorer |
|
|
Initial Value
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.
|
index.html - Notepad |
....<BODY>
<FORM METHOD="POST" ACTION="script.cgi">
<TEXTAREA NAME="area1" ROWS="5" COLS="30">
Hello World!
</TEXTAREA>
</FORM>
</BODY>....
|
|
|
My Homepage - Microsoft Internet Explorer |
|
|
|