-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbmi.html
More file actions
23 lines (23 loc) · 802 Bytes
/
bmi.html
File metadata and controls
23 lines (23 loc) · 802 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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BMI Calculator App</title>
</head>
<body>
<h1>BMI Calculator</h1>
<form action="/bmi" method="post" id='bmi'>
<label for="weight">Enter your weight (in kg):
<input type="number" step = 'any' name="weight" placeholder='Weight' id='weight' required>
</label>
<br><br>
<label for="height">Enter your height (in m):
<input type="number" step='any' name="height" placeholder='Height' id='height' required>
</label>
<br><br>
<button type="submit">Calculate Body Mass Index</button>
</form>
</body>
</html>