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 " />
87 < title > BMI</ title >
9- < style >
10- * {
11- padding : 10px ;
12- margin : 10px ;
13- }
14- p {
15- font-weight : bold;
16- }
17- </ style >
18- </ head >
19- < body >
20- < 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 >
8+ < link rel ="stylesheet " href ="style.css " />
9+ </ head >
10+ < body >
11+ < div class ="container ">
12+ < h2 class ="heading "> Body Mass Index (BMI) Calculator</ h2 >
13+ Your Height (cm):
14+ < input
15+ class ="input "
16+ type ="number "
17+ name ="cm "
18+ id ="height "
19+ value ="180 "
20+ placeholder ="Enter your height in cm "
21+ />
22+ Your Weight (kg):
23+ < input
24+ class ="input "
25+ type ="number "
26+ name ="weight "
27+ id ="weight "
28+ value ="80 "
29+ placeholder ="Enter your weight in kg "
30+ />
31+ < button class ="btn " id ="btn "> Compute BMI</ button >
32+ Your BMI:
33+ < input class ="input " type ="text " id ="bmi " disabled />
34+ < h4 class ="info-text ">
35+ Weight Condition: < span id ="weight-condition "> </ span >
36+ </ h4 >
2937 </ div >
30-
31- </ body >
38+ < script src =" index.js " > </ script >
39+ </ body >
3240</ html >
33- < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js " > </ script >
34- < script src ="./script.js "> </ script >
0 commit comments