Form is an HTML element. A form is used to accept data from the user side. A very common example of use of form is a login form of your email account. When you enter your login name and password, and click the submit button your submitted data (i.e. user name and password) are sent to the server of the service provider. Server then validates those data and displays the messages of your account.
A form holds few input elements to accept user input and to submit them. Few common types of such elements are Textbox, Textarea, password field, Submit button, Reset button, Dropdown combo box, etc. They are the members of the form in which they are placed. The roles of those elements are listed below.
Tow most common and important properties of an HTML form are "action" and "method". The action property define the URL where the form to be submitted. Say a form is to be submitted to an URL http://ramui.com/submit.php. Then the page submit.php must have proper code to handle those submitted data and take necessary action.
The method property define the way how the data are to be transmitted to the server. It may be GET or POST.
As said earlier form data can be submitted either by GET or by POST method. In GET method data hold by the form fields are first encoded and then transferred to the server through query string. As query string is part of URL so data security in this method is very poor. Anyone can see your submitted data just by searching history of your browser. So 'GET' method of form submit is only used when data security is not a big issue. Another limitation of GET method is that you can submit only ASCII data. POST method is a method of submitting form data in the header of an HTTP request.
GET or POST whatever the method used browser takes all responsibility either to build query string (in case of GET method) or build proper header request (in case of POST method). Developers have nothing to do here. They only mention the method of submission within the form tag and at the server end receive and handle those data carefully.