-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (27 loc) · 918 Bytes
/
Copy pathindex.html
File metadata and controls
32 lines (27 loc) · 918 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>BMI Calculator</title>
<link rel="stylesheet" href="style.css">
<script src="app.js"></script>
</head>
<body>
<form class="bmi-calculator" onsubmit="event.preventDefault(); calculate_BMI();">
<h1>BMI Calculator</h1>
<div class="inputs">
<div class="input-group">
<label for="height">Height (cm)</label>
<input id="height" type="number" min="30" max="300" placeholder="e.g. 170" required />
</div>
<div class="input-group">
<label for="weight">Weight (kg)</label>
<input id="weight" type="number" min="2" max="500" placeholder="e.g. 65" required />
</div>
</div>
<button type="submit" class="calculate-btn">Calculate</button>
<div class="calculator-display" id="result">Awaiting input...</div>
</form>
</body>
</html>