-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (42 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>BMI Calculator by JoErl</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no shrink-to-fit=no"
/>
<meta name="description" content="BMI Calculator by JoErl" />
<meta name="keywords" content="html, css, js" />
<meta name="author" content="Joel Anang" />
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="favicon.png" type="image/x-icon" />
</head>
<body>
<!--=======================================================-->
<div class="container">
<h1>BMI Calculator</h1>
<!--=======================================================-->
<div class="input-group">
<label for="height">Height (cm):</label>
<input type="number" id="height" placeholder="Enter height" />
</div>
<!--=======================================================-->
<div class="input-group">
<label for="weight">Weight (kg):</label>
<input type="number" id="weight" placeholder="Enter weight" />
</div>
<!--=======================================================-->
<button id="calculate">Calculate BMI</button>
<!--=======================================================-->
<div id="result" class="hidden">
<h2>Your BMI: <span id="bmi-value"></span></h2>
<p id="bmi-category"></p>
</div>
</div>
<!--=======================================================-->
<script src="script.js"></script>
<!--=======================================================-->
</body>
</html>