HTML forms are used to send submit form values to servers or databases. HTML <form> tags are more important when we do registration and login process.
HTML forms syntax given bellow,
HTML forms example given bellow,
The above <form> example will give some idea about form and form elements,
Thanks.
HTML forms syntax given bellow,
<form>
//form elements
</form>
//form elements
</form>
HTML forms example given bellow,
<html>
<head>
<title>Welcome to Fresherstarget</title>
</head>
<body>
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
Password: <input type="password" name="password">
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
<input type="submit" value="Submit">
</form>
</body>
</html>
<head>
<title>Welcome to Fresherstarget</title>
</head>
<body>
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
Password: <input type="password" name="password">
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
<input type="submit" value="Submit">
</form>
</body>
</html>
The above <form> example will give some idea about form and form elements,
Thanks.