HTML INPUT <input> Tag
0 2629
The INPUT <input> tag is used to create input fields in HTML document. When the user puts the data in input fields, he can be able to communicate with a website or an application.
An input tag use type attribute which describes the type of data you want. The <input> tag is an empty tag.
It contains attributes like type, submits, and more.
Program:
<!DOCTYPE>
<html>
<head>
<title>Input Tag</title>
</head>
<body>
<h2>HTML Input Example</h2>
<form action="#">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Output:
Share:
Comments
Waiting for your comments