The input element represents a typed data field, usually with a form control to allow the user to edit the data.
The input tag in HTML specifies an input field where the user can enter data.
<input>
elements are used within a <form>
element to declare input controls that allow users to input data.
An input field can vary in many ways, depending on the type attribute.
Tips and Notes
Note: The <input>
element is empty, it contains attributes only and no closing </input>
tag.
Tip: Use the <label>
element to define labels for <input>
elements.