HTML Forms

html forms

HTML form is wrapped inside inside <form> and </form> tags.
Every element inside these tags is called the form element.
Forms are used to collect user input and store in a database.

input element is the most important part of form elements.
They are the fields in which the user inputs the asked information.
There are many types of input elements specified using type attribute.


There are many things you will need to learn to create a desired html form. To simplify things I have divided the HTML form tutorial into 5 parts. We will be going through them one by one. This is to better understand all the form elements and attributes associated to them. These sections are-

  • Form Attributes
  • Types of input elements
  • Attributes for input elements
  • Buttons in Form
  • Grouping form elements


Please enter your comment!
Please enter your name here