Forms allow the user to enter information. For example, you can use forms
to collect user's names and email addresses. Forms begin with the tag
<FORM> and end with </FORM>.
You can use radio buttons to ask a question with one answer. For example,
if you wanted to ask "Which picture do you like?" and you wanted to have
the choices "monky", "flower", "girl", "building", you would type:
Checkboxes let the user check things from a list. The form is:
<INPUT TYPE="checkbox" NAME="name" VALUE="text">
Notice that the difference between check boxes and radio buttons is that
any number of check boxes can be checked at one time while only one radio
button can be checked at a time. For example, if you wanted to ask "Which
picture do you like?" and you allow any number of check boxes can be checked
at one time, you would type:
Which picture do you like?
Monky
Flower
Girl
Building
Submit and Reset
Other button types include submit and reset. "submit" is the button the
user presses to send in the form. "reset" clears the entire form so the
user can start over. For example:
This type allows users to type in text but instead of displaying the
text that they type astericks are displayed instead:
<INPUT TYPE="password" NAME="pass" SIZE="20">
Pull-Down Menu
You can ask a question with only one answer is by using a pull-down menu.
For example:
How old are you?
<SELECT NAME="age">
<OPTION>1-15
<OPTION SELECTED >16-21
<OPTION>22-30
<OPTION>31-45
<OPTION>46-65
<OPTION>66-80
<OPTION>81-up
</SELECT>
The result is:
How old are you?
Scroll-Down Menu
Ther are two kinds of scroll-down menus. One is that you can only select
one item:
How old are you?
<SELECT NAME="age" SIZE=5>
<OPTION VALUE="1-15">1-15
<OPTION VALUE="16-21">16-21
<OPTION VALUE="22-30">22-30
<OPTION VALUE="31-45">31-45
<OPTION VALUE="46-65">46-65
<OPTION VALUE="66-80">66-80
<OPTION VALUE="81-up">81-up
</SELECT>
The result is:
How old are you?
The other menu is that you can select one or more items by holding down
shift. For example:
What is your favorite thing?
(Hold <i>shift</i> to select more that one)
<SELECT NAME="reading" MULTIPLE size="3">reading
<OPTION VALUE="sports">sports
<OPTION VALUE="travelling">travelling
<OPTION VALUE="music">music
<OPTION VALUE="cooking">cooking
<OPTION VALUE="shopping">shopping
<OPTION VALUE="talking">talking
</SELECT><P>