Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women.
This application will calculate BMI.
Source Code:
index.html
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metahttp-equiv="X-UA-Compatible"content="ie=edge"><linkrel="stylesheet"href="style.css"><title>BMI Calculator</title></head><body><divclass="container"><h1>BMI Calculator</h1><form><p><label>Height in CM: </label><inputtype="text"id="height"></p><p><label>Weight in KG: </label><inputtype="text"id="weight"></p><button>Calculate</button><divid="results"></div><divid="weight-guide"><h3>BMI Weight Guide</h3><p>Under Weight = Less than 18.6</p><p>Normal Range = 18.6 and 24.9</p><p>Overweight = Greater than 24.9</p></div></form></div></body><scriptsrc="script.js"></script></html>Code language:HTML, XML(xml)