Form Tag in HTML || HTML Form Tag
×

HTML FORM (<form>) Tag

2462

The <form> tag uses an HTML form to pass user data to a specified URL. An HTML form is used to capture user information such as username, password, address details, and much more information.

The <form> tag can contain more tag like <input>, <textarea>, <button>, <select>, <option>, <optgroup>, <fieldset>, <label>, <output>, <legend>.

HTML form facilitates the user to enter data that is to be sent to the server and store in the database.

Program:

<!DOCTYPE html>
<html>
<head>
<title>HTML form Tag</title>
</head>
<body>
<form action="#">
First name: <input type="text" name="FirstName" placeholder="Enter FirstName" value="codingtag"><br>
Last name: <input type="text" name="LastName" placeholder="Enter LastName" value="com"><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