• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Forms >  Creating Larger Text Areas

Creating Larger Text Areas

In some cases, you want to give the visitor more room to write. Unlike text boxes (see page 196), text areas may be as large as your page, and will expand as needed if the person enters more text than can fit in the display area. They're perfect for eliciting questions and comments.

To create larger text areas:

1.
If desired, type the explanatory text that will identify the text area.

2.
Type < TEXTAREA.

3.
TypeNAME="name", where name is the text that will identify the input data to the server (and your script).

4.
If desired, typeROWS=n, where n is the height of the text area in rows. The default value is 4.

5.
If desired, typeCOLS=n, where n is the width of the text area in characters. The default value is 40.

6.
If desired, typeWRAP so that when the visitor types, the lines are automatically wrapped within the margins.

7.
Type >.

8.
Type the default text, if any, for the text area. You may not add any HTML coding here.

9.
Type </TEXTAREA> to complete the text area.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint