HTML input tag
HTML <input> tag allows the user to enter data in the form. It represents radio button, checkbox, input field and many other types of buttons depending upon the type of button. This element is used in the form element.
<form action="files/inputtag.php" method="post">
Name:<input type="text" name="fname" />
Email:<input type="email" name="email" />
<input type="submit" name="submit">
</form>
</>
Tag Uses
Specific uses of <input> taginput element is basically used in a form to collect the information of a person.
Tag omission
It is self-closing tag i.e. there is no end tag.
Global Attributes
All the global attributes are applicable on the input element.
Next Previous
Was this article helpful?