11<!DOCTYPE html>
22< html lang ="en ">
3- < head >
4- < meta charset ="UTF-8 ">
5- < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7- < link href ="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css " rel ="stylesheet ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < link
8+ href ="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css "
9+ rel ="stylesheet "
10+ />
811 < title > BMI</ title >
912 < style >
10- * {
11- padding : 10px ;
12- margin : 10px ;
13- }
14- p {
15- font-weight : bold;
16- }
13+ * {
14+ padding : 10px ;
15+ margin : 10px ;
16+ }
17+ p {
18+ font-weight : bold;
19+ }
1720 </ style >
18- </ head >
19- < body >
21+ </ head >
22+ < body >
2023 < div class ="container d-block text-center ">
21- < h2 class ="p-2 "> Body Mass Index Calculator using Metric Units</ h2 >
22- Your Height: < input class ="p-2 m-2 " type ="number " name ="cm " id ="cm " placeholder ="centimeters ">
23- < br />
24- Your Weight: < input class ="p-2 m-2 " type ="number " name ="weight " id ="weight " placeholder ="kilograms ">
25- < br />
26- < button class ="btn btn-primary p-2 m-2 " onclick ="fun() "> Compute BMI</ button > < br />
27- Your BMI: < input class ="p-2 m-2 " type ="text " name ="bmi " id ="bmi " disabled >
28- < h4 class ="p-2 m-2 "> </ h4 >
24+ < h2 class ="p-2 "> Body Mass Index Calculator using Metric Units</ h2 >
25+ Your Height:
26+ < input
27+ class ="p-2 m-2 "
28+ type ="number "
29+ name ="cm "
30+ id ="cm "
31+ min ="0 "
32+ required
33+
34+ placeholder ="centimeters "
35+ />
36+ < br />
37+ Your Weight:
38+ < input
39+ class ="p-2 m-2 "
40+ type ="number "
41+ name ="weight "
42+ id ="weight "
43+ placeholder ="kilograms "
44+ min ="0 "
45+ required
46+ />
47+ < br />
48+ < button class ="btn btn-primary p-2 m-2 " onclick ="fun() ">
49+ Compute BMI</ button
50+ > < br />
51+ Your BMI:
52+ < input class ="p-2 m-2 " type ="text " name ="bmi " id ="bmi " />
53+ < h4 class ="p-2 m-2 "> </ h4 >
2954 </ div >
30-
31- </ body >
55+ </ body >
3256</ html >
33- < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js " > </ script >
57+ < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js "> </ script >
3458< script src ="./script.js "> </ script >
0 commit comments