HTML input Tag

The HTML <input> tag is used in HTML form that allow user to input data. The <input> tag has type attribute which hold the different types of input field and value attribute conatin the value of the input field and name attribute contain the name of the input field. The <input> tag is a single tag it has no end tag.

Example of Code

<form action="">
First name: <input type="text" name="FirstName" value="inimist">
Last name: <input type="text" name="LastName" value="tech">
<input type="submit" value="Submit">


First name: Last name: