WD 8. Forms&InputTags
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forms</title>
</head>
<body>
<h2>This is HTML forms tutorial</h2>
<form action="backend.php">
<label for="name">NAME</label>
<div>
<input type="text" name="myName" id="name">
</div>
<div>
ROLE: <input type="text" name="myRole">
</div>
<div>
EMAIL: <input type="email" name="myEmail">
</div>
<div>
DATE: <input type="date" name="myDate">
</div>
<div>
BONUS: <input type="number" name="myBonus">
</div>
<div>
ARE YOU ELIGIBLE?: <input type="checkbox" name="myEligibility" checked>
</div>
<div>
GENDER: MALE<input type="radio" name="myGender">
FEMALE<input type="radio" name="myGender">
OTHER<input type="radio" name="myGender">
</div>
<div>
WRITE ABOUT YOURSELF: <br><textarea name="myText" cols="90" rows="10"></textarea>
</div>
<div>
<label for="car">CAR</label>
<select name="myCar" id="car">
<option value="ind">INDICA</option>
<option value="swf" selected>SWIFT</option>
</select>
</div>
<div>
<input type="submit" value="SUBMIT NOW">
<input type="reset" value="RESET NOW">
</div>
</form>
</body>
</html>
#Output:
Comments
Post a Comment