How to make forms using html only
First open the visiual studio code and apply the boilerplate.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forms with harry</title>
</head>
<body>
<h2>I learn here HTML Forms</h2>
<form action="backend.php">
<label for="name"> Name</label>
<!-- label is used to assign the values to the input data
And by simply clicking on the value input box is automatically
selected -->
<div>
<input type="text" name="myname" id="name">
</div>
<br>
<label for="year">Year:</label>
<div> <input type="text" name="myyear" id="year">
</div>
<br>
<label for="email">Email:</label>
<div>
<input type="email" name="myemail" id="email">
</div>
<br>
<label for="date">Date of birth</label>
<div>
<input type="date" name="myDate" id="date">
</div>
<br>
<div>
Bonus: <input type="number" name="myNumber">
</div>
<br>
<div>
Are you eligible?: <input type="checkbox" name="myeligible">
</div>
<br>
<div>
Gender:Male <input type="radio" name="myGender"> Female <input type="radio" name="myGender">Other:<input
type="radio" name="myGender">
</div>
<br>
<div>
Write about yourself: <input type="textarea" row="30" column="20">
</div>
<br>
<label for="car">Car</label>
<select name="mycar" id="car">
<option value="foruner">Fortuner</option>
<option value="audi" selected> Audi</option>
</select>
<br>
<div>
<input type="submit" value="Submit Now">
<input type="reset" value="Reset Now">
</div>
</form>
</body>
</html>