Skip to content

Instantly share code, notes, and snippets.



Last active Feb 23, 2021
What would you like to do?
BMI Calculator - HTML Part
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="main.css">
<script src="script.js" defer></script>
<link rel="preconnect" href="">
<link href="" rel="stylesheet">
<div class="container">
<h1>BMI Calculator</h1>
<input id="h-input" type="number" placeholder="Enter Your Height in Centimeters: ">
<input id="w-input" type="number" placeholder="Enter Your Weight in Kilogrames: ">
<button type="submit" onclick="Calculate()">Calculate BMI</button>
<div class="bmi-value">
<h4>BMI Value: </h4>
<div id="bmi-output"></div>
<div class="status">
<h4>Status: </h4>
<div id="bmi-status"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment