HTML <input> elements

The <input> element is used to create interactive controls for web-based forms to accept data from the user; a wide variety of input data and control widgets are available. It is one of the most powerful and complex elements in all of HTML due to the sheer number of combinations of input types and attributes present.

How <input> works vary considerably depending on the value of its type attribute. If an attribute is not specified, the default type adopted is text.

List of major INPUT TYPES:

Input typeRole
"text"defines a single-line text input field
"password"defines a password field
"submit"defines a button for submitting form data to a form-handler
"reset"defines a reset button to reset all form values to their default
"radio"radio buttons let a user select ONLY ONE of a limited number of choices
"checkbox"checkboxes let a user select ZERO or MORE options of a limited number of choices
"button"defines a button
"color"used for input fields that should contain a colour
"date"used for input fields that should contain a date
"email"used for input fields that should contain an e-mail address
"number"defines a numeric input field