Example
An HTML form with three input fields; two text fields and one submit button:<form action="demo_form.asp">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
Teach Yourself by BH24 HTML Editor Tool!
The <input> tag is supported in all major browsers.
Definition and Usage
The <input> tag 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.Tip: Use the <label> element to define labels for <input> elements.