A form has three required elements:
- <form>...</form>
The element that creates the form. This element has two attributes, method and action. The method is either post or get, and I will explain these in a future article. The action is a URL pointing to the CGI script that will run on the form data.
- <input />
The element that generates the data for the form. For this simple form, we will use the input type of text.
- <input type="submit" />
This is actually a sophisticated form of the <input /> element, but in order for a form to be sent to the CGI, you must have this element.

