The <input>
HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input>
element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
<input> types
How an <input>
works varies considerably depending on the value of its type
attribute, hence the different types are covered in their own separate reference pages. If this attribute is not specified, the default type adopted is text
.
The available types are as follows:
for more info go through below link
credits :- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input