HTML Forms



A lot of websites built today pay a lot of emphasis on data input from the user.Opinion of the users about various products and other things have a lot of importance and so the use of forms in websites has increased.

What are Forms In HTML

HTML forms are used used to input data from the user and this data is passed on to the server. Various forms in HTML are text fields,radio buttons,checkboxes,drop down list,submit button,reset button etc. The < form> tag is used in HTML to create HTML forms and the input element is used to collect user information.

Different Forms In HTML

There are various types of forms in HTML.Given below is a list of them.

HTML Text fields

They can be created using < input> element.
<form>
    First Name:<input type="text" name="First Name" /> Last Name:<input type="text" name="Last Name" />
</form>
Result: First Name: Last Name: Learn more about text fields

HTML Checkboxes

Here is how you specify the checkbox input in your HTML body’s form tag area:
 <input type="checkbox" value="Logo Designing" name="designing" />Soccer<br />
<input type="checkbox" value="Brochure Designing" name="designing" />Football 
Soccer
Football Learn more about Checkboxes

HTML Radio Buttons

Radio Buttons are one of the easiest ways of information capture.Here is how to include them in your webpage: Single Married Learn more about Radio Button

HTML Submit Button

Submit Button is used to submit the data to the server.Here is an example:
<form>
    Username<input type="text" name="Username" /> Password<input type="password" name="Password" /> <input type="submit" value="submit" />
</form>

Username: Password:

Learn more about Submit Button Note:Learn more about HTML Reset-button and HTML Drop Down list now.

Previous:HTML Background Next:HTML Image Tag