Back to Nelson's Web Design Home Page
The INPUT Element
A number of different input types like text entry fields, radio buttons and check boxes are possible with <INPUT> elements. This element, like others like <IMG> and <HR> don't actually enclose any text and so don't have an end tag.
This is achieved as follows:
Type your name:
<INPUT TYPE="TEXT" NAME="name of variable">
Other attributes relevant to TEXT include:
To actually submit the form, the user clicks on a button of type SUBMIT.
To reset a form to its default, the user clicks on a button of type RESET.
This is achieved by
<SELECT NAME="name of variable">
<OPTION> Option 1
<OPTION> Option 2
<OPTION> Option 3
</SELECT>
If multiple selections are allowed, <SELECT> should have a MULTIPLE attribute. If an option is to be selected by default, it should have a SELECTED attribute.
For multi-line text entry, a <TEXTAREA> element can be used.