HTML FORM (<form>) Tag
0 2658
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:
Share:
Comments
Waiting for your comments