Forms: HTML
Create a Form
| The Form Tag | Create a form with
the <FORM></FORM> tag pair.
Within the <FORM> tags will go the entire form, i.e. both the questions you ask and the box and button spaces where the visitor will supply responses. This area is called the form field The fill-in blanks are called form elements. |
|
| The opening <FORM>
tag requires two attributes:
ACTION="[CGI script]" where [CGI script] specifies the pathname of the computer program that the server will use to process the form. METHOD="POST"; this attribute tells the browser to process the form. |
||
| You can place many different types of form elements in the same form. | ||
| To create most
form elements, use the following code:
<INPUT TYPE="[form]" NAME="[name]"> This code does not require a closing tag. The TYPE attribute specifies the kind of form element (e.g., text box, button, etc.) you want to display. This attribute is required in the tag for each form element. The NAME attribute specifies the class of information (e.g., last name, first name, etc.) being gathered by that particular form element. When the information is processed by the server it will be identified by the term you assign to the NAME attribute. |
||
Forms: HTML
Overview
Create a Form
Create Text and Password Boxes
Create Radio Buttons
Create Checkboxes
Create Menu Boxes
Create Text Blocks
Create the Reset and Submit Buttons
Web Design Center
Last Revised:
February 9, 2004
© Agatha Taormina