Recognize the HTML code that is used to create forms.
HTML Form Creation and Review
Most of the uses for servlets require information from the user: Whats your name? How many of those would you like to order?
There are several ways to gather information from a user on the Web, but a tried and true way is the HTML form. In this lesson we will review the tags used in a form to be sure you are comfortable and familiar with them.
HTML form tags
The HTML file below describes elements of the form to be submitted.
Forms start with a <FORM> tag and end with a </FORM> tag.
Between the form tags are <INPUT>, <SELECT>, and <TEXTAREA> tags which are specific to an HTML form,
along with more general formatting and structural HTML tags like
<BR> or <TABLE>. There are six important types of INPUT tags, and two types of SELECT tags.
I loaded this HTML into my browser and typed in some of the fields. Heres how it looked:
In the next lesson, I will discuss the structure of a servlet that uses form fields.