Forms are used to get information from the user and send it back to the server. There the server can process the data and send a possibly different web page back to the user. This allows a form of interaction with the user. Forms are a collection of input objects, like buttons, text boxes and selection lists.
First, draw a picture of what you want your form to look like, include labels for the input elements, positions, colors, sizes, etc. Also mark down any default values and constraints. For example, in-country phone numbers have 10 digits. Then we can start translating this into code.
The form tag controls the whole form. It has a few attributes. You should always give your forms a name. This will come in very handy when writing JavaScript to do validation. The action attribute will be discussed later, along with the method one. Inside the form tag will go all the form elements along with the HTML to control the formatting. Tables are very helpful for this.