HTML forms and input types - Taleem Dunya

Lecture 07

HTML forms and input types

HTML form is used to get user input. The user input is most often sent to a server for processing by using get or post methods. The input from the user is generally sent to a server (Web servers, Mail clients, etc). We use the HTML

element to create forms in HTML.

HTML Form sample code

The input from the user is generally sent to a server (Web servers, Mail clients, etc). We use the HTML tag element to create forms.


Different Input Types use in Form

Different input types which are used in html form page for different type input data collect from the user.


Input Type Password

Login page of any website must contains username and password for login process.


Input Type Reset

A reset button that will reset all form values to their default values. if you want to reset or clean the whole values of input type of any form then reset do this work on one click.


HTML Form for Registration

Following is the example for a simple form of registration.