-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (42 loc) · 1.53 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BMI Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<h1> Calculate Your Body Mass Index</h1>
<!-- height -->
<label for="height">Enter Your Height </label>
<div class="height">
<div> <input type="number" placeholder="feet" name="height" id="feet"> <span id="ft-error"></span>
</div>
<div>
<input type="number" placeholder="Inches" name="height" id="inches"> <span id="inch-error"></span>
</div>
</div>
<!-- weight -->
<div class="weight">
<label for="weight">Enter Your Weight</label>
<div>
<input type="number" placeholder="Kilograms" name="weight" id="weight"> <span
id="weight-error"></span>
</div>
</div>
<!-- submit button -->
<button onclick="check();">Calculate</button>
<!-- for results -->
<div class="show-output">
<span id="result" class="output"> </span>
<span id="r-statement" class="output"></span>
</div>
</main>
<link
href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Roboto:wght@100;400;500;700&display=swap"
rel="stylesheet">
<script src="script.js"></script>
</body>
</html>