-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (29 loc) · 1.1 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
<html>
<head>
<title>BMI Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="panel">
<h2 class="text-center">Check your BMI</h2>
<p id="introText" class="text-center">Enter your weight and height below to check your BMI results</p>
<form>
<div id="weightInput">
<p>Put your weight in here (KG)</p>
<input id="weight" type="number" pattern="[0-9]*" name="a" />
</div>
<div id="heightInput">
<p>And your height in here (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" class="text-center">Your BMI results will appear here</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>