Forms are a staple of web sites. Almost every web site has one or more forms. Forms can be as simple as a “contact us” form or as complex as an order entry form. There are numerous ways to create forms. But how do you create forms? How do you make them look nice? How do you make them accessible? How do you make them easy to use? These are some of the many questions asked when first starting to create forms. In this series of articles, we hope to answer those questions and many more.
So what are forms and how do they work? HTML forms are nothing more than a collection of "input" boxes with a submit button. That is the simplest way to explain it. Of course, forms are a little more complex than that. Figure 1 shows an example of a login form.

Figure 1
This login form asks for two inputs: username and password. There is also a submit button. What happens when the user click this button? The user agent or browser sends the form data to the URL contained in the form’s "action" attribute. The action is performed by taking the input elements and performing the logic. We will not be discussing actions in these articles since there are many ways to performance actions depending on the programming language you are using.
There are several HTML elements designed just for forms. Some elements are designed for the layout and grouping of the form fields, while others are designed for input from the user. Let’s explore some of these HTML elements.
The FORM Element
Syntax:
<form action="url to submit form data"
accept="MIME Type" accept-charset="character set"
enctype="text/plain| application/x-www-form-urlencoded|multipart/form-data" method="get|post">
</form>All forms begin with a
HTML tag. All form specific HTML tags are placed in between the opening and closing