Form Tags: Text

 

Form Tags

 

TEXT

The Text tag creates a single line text box for visitors to enter information. It's used for short pieces of information like name or zip code that will fit on one line.

Example Text Box:

What city do you live in?

 

Here's the html code:

<P>What city do you live in?<INPUT TYPE="text" NAME="City" VALUE="Washington D.C." SIZE=30 MAXLENGTH="100"></P>

 

 

Parts of the Text Tag

HTML Label (Example: "What city do you live in?")

Text boxes are labeled with regular html text so your visitors can understand what information they are expected to provide. You can put your label before or after the Text tag.

Note: The label is not actually part of the Text tag itself and is not included in the form data sent.

NAME="any text"

The NAME is used by the Thank You page and email to name the information entered in the text box.

VALUE="any text" Optional

The VALUE is placed inside the text box as default text.

SIZE="number" Optional

This sets the width in characters of the text box. If your visitor enters more text than will fit, the text will scroll.

Notes

If you have only one text box as the only control in your form, the form will be submitted when your visitor presses the Return key.

 

 


Form Controls


Home


TextArea