-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
23 lines (22 loc) · 779 Bytes
/
index.html
File metadata and controls
23 lines (22 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!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="style.css">
</head>
<body>
<h1>BMI Calculator</h1>
<form class="form">
<label for="weights">Weight (kg):</label>
<input type="number" class="weights" id="weights" name="weight" placeholder="Enter weight" required>
<label for="heights">Height (cm):</label>
<input type="number" class="heights" id="heights" name="height" step="0.01" placeholder="Enter height" required>
<button type="submit" value="Calculate BMI">Calculate BMI</button>
</form>
<!-- Result show hoga yahan -->
<p id="result"></p>
<script src="script.js"></script>
</body>
</html>