INPUT <input> Tag

by Jai 09-Jul-19

0 380


The <input> tag is used to create input fields in HTML document. When 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, submit, 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:

INPUT <input> Tag



Share:


Comments

    Waiting for your comments

Leave a Reply