Input tag
Advertisements
Input tag
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.
Example
<html> <body> <form> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"> </form> </body> </html>
Result
First name:
Last name:
Last name:
Browser supported
Element | |||||
<hr> | Yes | Yes | Yes | Yes | Yes |
Google Advertisment