-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (26 loc) · 885 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div id="content-wrapper">
<h3>Calculate your BMI</h3>
<form onsubmit="handleForm(event)">
<p>Height in centimetres</p>
<input type="number" min="0" name="height" required>
<p>Weight in kilograms</p>
<input type="number" min="0" name="weight" required>
<p id="result"></p>
<button type="submit" id="submitButton">Calculate</button>
</form>
<h2>BMI advice</h2>
<p>Lower than 18.5: Too low</p>
<p>Between 18.5 and 25 : Healthy weight</p>
<p>Higher than 25: Too high</p>
</div>
<script src="script.js"></script>
</body>
</html>