TEXTAREA Form Element

Default Text Rows & Columns

The final category of form field is the TEXTAREA . A TEXTAREA tag can be used to insert a multiple line text entry area into your form. Like the Select tag, there is an opening and closing tag.

<FORM ACTION="http://webdevfoundations.net/scripts/formdemo.asp" METHOD="POST">

<TEXTAREA     NAME="Question" >
</TEXTAREA>

<INPUT TYPE = "submit" value="Post">

</FORM>

blueline.gif (1205 bytes)

The attributes ROWS and COLS sets the size of the field.   You can also enter DEFAULT TEXT by placing the text between the <TEXTAREA> .. </TEXTAREA> tags.

<FORM ACTION="http://webdevfoundations.net/scripts/formdemo.asp" METHOD="POST">

<TEXTAREA     NAME="MyTextArea"   ROWS=5    COLS="50" >
Enter you question here:

</TEXTAREA>
<INPUT TYPE = "submit" value="Post">

</FORM>

blueline.gif (1205 bytes)

Last updated on 02/04/2009  by L.M. Hicks