-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (30 loc) · 961 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
<!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">
<link rel="stylesheet" href="style.css">
<title>BMI Calculator</title>
</head>
<body>
<div class="wrapper">
<div class="panel">
<h2 class="header">Check your BMI</h2>
<form>
<div id="weightInput">
<p>Enter Weight (KG)</p>
<input id="weight" type="number" pattern="[0-9]*" name="a" />
</div>
<div id="heightInput">
<p>Enter Height (CM)</p>
<input id="height" type="number" pattern="[0-9]*" name="b"/>
</div>
<button type="button" class="btn" onclick="calculate()">Calculate BMI</button>
</form>
<div id="results">Your BMI results will appear here</div>
</div>
</div>
<script src="./app.js"></script>
</body>
</html>