-
Notifications
You must be signed in to change notification settings - Fork 1
/
bmi.html
70 lines (67 loc) · 2.35 KB
/
bmi.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!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="bmi.css">
</head>
<body>
<div class="calculator">
<h2>BMI Calculator</h2>
<form id="bmi-form">
<label for="weight">Weight (kg):</label>
<input type="number" id="weight" name="weight" required>
<label for="height">Height (cm):</label>
<input type="number" id="height" name="height" required>
<button type="button" onclick="calculateBMI()">Calculate BMI</button>
</form>
<div id="result"></div>
</div>
<script src="bmi.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Understanding BMI Numbers</title>
</head>
<body>
<div class="calculator">
<h1>Body Mass Index (BMI)</h1>
<p>BMI is a tool used to estimate body fat based on height and weight. It's a simple calculation but doesn't directly measure body fat. However, it can be a helpful indicator of potential health risks associated with weight.</p>
<h2>BMI Categories and Meanings</h2>
<p>Here's a breakdown of BMI categories and their meanings according to the Centers for Disease Control and Prevention (CDC):</p>
<table>
<tr>
<th>BMI Range</th>
<th>Weight Status</th>
</tr>
<tr>
<td>Below 18.5</td>
<td>Underweight</td>
</tr>
<tr>
<td>18.5 to 24.9</td>
<td>Healthy Weight</td>
</tr>
<tr>
<td>25.0 to 29.9</td>
<td>Overweight</td>
</tr>
<tr>
<td>30.0 and Above</td>
<td>Obese</td>
</tr>
</table>
<p>**Important Note:** BMI is a general guideline. It may not be as accurate for people with:</p>
<ul>
<li>Very muscular builds (muscle weighs more than fat)</li>
<li>Older adults (muscle mass may decrease with age)</li>
<li>Pregnant or breastfeeding women</li>
</ul>
<p>If you have concerns about your weight or BMI, talk to your doctor. They can consider your BMI along with other factors for a more personalized assessment of your health.</p>
</div>
</body>
</html>