Examples of Form Fields

This Web form illustrates the various types of form fields that may be used to obtain information from a visitor.  You can view the source code of this form to see how it was constructed.  Note:  For the form tag, the action attribute can have different values depending upon how you want to transmit the form data.  In this example, the action attribute is set up to send the form data via email (if I had used a valid email address for the action attribute).   However, the value for the action attribute is usually the name of a script that is used to transmit the data.

One line Text Box

Name:


Text Area or Scrolling Text Box with No Word Wrap (except in IE - the default is word wrap)

Some of my favorite places to eat are:


Scrolling Text Box with word wrap 
(i.e. wrap=virtual)

Other comments:


Drop Down List or Menu

My favorite season of the year is:


Check Boxes 
(allow user to select more than one response)

I enjoy:
hiking   traveling   reading   other


Radio Buttons 
(allow user to select only one response from the group of choices)

My least favorite chore is:
mowing lawn  shoveling snow   washing dishes


Password Box 
(don't use this field on Behrend web pages)

Password:
  

  


Web site contact: ccwebmaster@psu.edu
Updated February 27, 2008
© 2005 The Pennsylvania State University