INPUT Tag in HTML || HTML INPUT Tag
×

HTML INPUT <input> Tag

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:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments