<!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>HTML CSS and JS - BMI Calculator</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="content-md-lg py-3">
<div class="col-lg-8 col-md-10 col-sm-12 col-12 mx-auto">
<div class="page-title">BMI Calculator App using HTML, CSS, and JavaScript</div>
<hr style="margin:auto; width:25px" class="border-light opacity-100">
</div>
<div class="container-lg">
<div class="row py-3 my-2">
<div class="col-lg-5 col-md-5 col-sm-10 col-12 mx-auto">
<div class="card rounded-0">
<div class="card-body">
<div class="container-fluid">
<form action="" id="bmi-form">
<input type="hidden" id="calculationType" name="calculationType" value="standard">
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="radio" name="calculationTypeRadio" id="calculationTypeStandard" value="standard" checked>
<label class="form-check-label" for="calculationTypeStandard">
Standard
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="calculationTypeRadio" id="calculationTypeMetric" value="metric">
<label class="form-check-label" for="calculationTypeMetric">
Metric
</label>
</div>
</div>
<div class="mb-3">
<label for="weight" class="form-label">Weight <span id="weightUnit">[Pounds <em>(lbs)</em>]</span></label>
<input type="number" step="any" class="form-control rounded-0" id="weight" name="weight" required>
</div>
<div class="mb-3">
<label for="height" class="form-label">Height <span id="heightUnit">[Inches <em>(in)</em>]</span></label>
<input type="number" step="any" class="form-control rounded-0" id="height" name="height" required>
</div>
<div class="mb-3">
<h4 class="text-center"><b>Your BMI</b></h4>
<h3 class="text-center text-body" id="resultBMI"></h3>
</div>
<div class="mb-3">
<h4 class="text-center"><b>BMI Category</b></h4>
<h3 class="text-center text-body" id="resultBMIcategory"></h3>
</div>
<div class="col-lg-4 col-md-6 col-sm-10 col-12 mx-auto">
<button class="btn btn-primary rounded-pill w-100">Calculate BMI</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>