Forms and Input Tags(HTML)
<!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</title>
</head>
<body>
<h2>I am going to create form</h2>
<form action="backend.php">
<label for="name">Name</label>
<div>
<input type="text" name="myname" id="name">
</div>
<label for="project">Project</label>
<div>
<input type="text" name="myproject" id="project">
</div>
<div>
Email: <input type="text" name="myemail">
</div>
<div>
Date: <input type="date" name="mydate">
</div>
<div>
Number: <input type="number" name="mynumber">
</div>
Are you eligible?: <input type="checkbox" name="myeligibility">
</div>
<div>
Gender: Male <input type="radio" name="mygender"> Female<input type="radio" name="mygender">
other<input type="radio" name="mygender">
</div>
<div>
Write Your Experience: <textarea name="mytext" cols="30" rows="10"></textarea>
</div>
<div>
<label for="car">Car</label>
<select name="mycar" id="car">
<option value="bmw">BMW</option>
<option value="lamborghini">Lamborghini</option>
</select>
</div>
<div>
<input type="submit" value="submit now">
<input type="reset" value="reset now">
</div>
</form>
</body>
</html>
Comments
Post a Comment