HTMLify
BMI - Calculator
Views: 485 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" /> <title>BMI Calculator</title> </head> <body> <div class="main"> <div class="container"> <h1>BMI Calculator</h1> <div class="box"> <label for="Height">Height (cm):</label> <input type="number" placeholder="Enter your Height" name="" id="Height" required /> </div> <div class="box"> <label for="weight">Weight (kg):</label> <input type="number" placeholder="Enter your Weight" name="" id="Weight" required /> </div> <!-- sumbit-Button --> <button class="calc" onclick="calculateBMI()">Calculate</button> <button id="reset" onclick="resetForm()"> Reset <i class="fa-solid fa-rotate-right"></i> </button> <div id="result"></div> </div> <!-- BMI-Line --> <div class="bmi-line"> <div class="bmi-mark"> <span>< 18.5</span> <span>18.5 - 24.9</span> <span>25.0 - 29.9</span> <span>≥ 30.0</span> </div> </div> <div class="BMI"> <a href="https://my.clevelandclinic.org/health/articles/9464-body-mass-index-bmi" target="_blank" ><span class="ques">What is BMI?</span></a > </div> <div class="love"> Made with<span class="art"> ❤ </span> by Kuldeep Sharma </div> </div> <script src="script.js"></script> </body> </html> |