-
Notifications
You must be signed in to change notification settings - Fork 0
/
constraint-validation-challenge-starter.html
49 lines (45 loc) · 1.39 KB
/
constraint-validation-challenge-starter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Constraint-validation Challenge - starter</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="constraintValidation.css"/>
</head>
<body>
<div id="wrapper">
<header id="welcomeHeader">
<img id="foodPlateImg" src="images/MyFoodPlate_logo.png" />
</header>
<section id="mainContent">
<form>
<h1>Body Mass Index</h1>
<fieldset>
<legend>Unit of Measurement</legend>
<label for="unitsMetric">
cm/kg:
</label>
<input type="radio" id="unitsMetric" name="units" value="metric" required>
<label for="unitsEn">
in/lb:
</label>
<input type="radio" id="unitsEn" name="units" value="en" required>
</fieldset>
<fieldset>
<legend>Height/Weight</legend>
<label for="h">Height:</label>
<input type="number" id="h" name="h" size="6" class="blockElem" required>
<label for="w">Weight:</label>
<input type="number" id="w" name="w" size="6" class="blockElem" required>
</fieldset>
<fieldset>
<legend>Contact Info:</legend>
<label for="email" class="blockElem">Email: </label>
<input type="email" id="email" size="10" required>
</fieldset>
<input type="submit" id="calcBMI_btn" name="calcBMI_btn" value="Calculate BMI">
</form>
</section>
</div>
</body>
</html>