Sample Form
Input type=text box:
This text box is 35 characters long:
The maximum number of characters which can be entered in this box is 10:
This box already has values inserted:
The input type here is not 'text', but 'password':
Now you've got choices (you can only choose one):
Choice 1
Choice 2
Choice 3
You've still got choices (one is checked as default):
Choice 1
Choice 2
Choice 3
This is a drop-down menu:
These
are
your
choices
You can add the 'selected=' (selected="selected") attribute to the 'option' element that you want to be the default choice. Normally the top item on the list is the default.
To allow multiple options on the drop-down menu to be chosen use multiple="multiple" in the <select> element.
The 'size=' attribute in the <select> element determines how many menu options appear at one time when allowing multiple choices.
Here is a big box in which you can enter lots of text. It is built with the <textarea> element.
This is some default content.
This checkbox is made by setting the input type to 'checkbox.'