Forms are the main tool for a web site's interaction with users.

A form is marked with the <form></form> tags and it is made off one or more named controls that users can fill up. After completion of the form, a user submits the form by pressing the submit button and sends its results to the processing server. That can be a web server, e-mail server, etc...

The controls (fields) that forms might contain are:

Besides acting as a holding container, the form open tag (<form>) also defines the action to be taken upon submission (action attribute), the method which will be used for sending the data to the server (method attribute) and the character encoding (accept-charset attribute).


<form><input type="" name="" /><input type="submit" name="" /></form>



HTML form elements:


›› go to examples ››