FORM (<form>) Tag

by Jai 06-Jul-19

0 329


The <form> tag use an HTML form to pass user data to specified URL. An HTML form is used to capture user information such as username, password, address details, and many 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 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:

FORM (<form>) Tag


Share:


Comments

    Waiting for your comments

Leave a Reply