-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmiCalculator.html
53 lines (49 loc) · 1.38 KB
/
bmiCalculator.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
<!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</title>
</head>
<style>
.main-container{
width: 40vw;
margin: auto;
background-color: black;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.form-input{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.form-input input, button{
padding: 5px;
margin: 5px 0px;
width: 400px;
outline: none;
border: none;
border-radius: 4px ;
}
</style>
<body>
<div class="main-container">
<h2>Calculate Your BMI</h2>
<form action="/BMI" method="post" class="form-input">
<input type="text" placeholder="Enter your height(in m)" name="height">
<input type="text" placeholder="Enter your weight(in kg)" name="weight">
<button type="submit" name="submit">Calculate BMI</button>
</form>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
</body>
</html>