-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (32 loc) · 1.28 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BMI Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
<h1>BMI Calculator</h1>
<label for="weightInput" id="label">Enter your weight: </label>
<input type="radio" id="radioKgs" name="weight">
<label for="radioKgs">Kilograms</label>
<input type="radio" id="radioPounds" name="weight">
<label for="radioPounds">Pounds</label>
<input type="number" id="weightInput" value="0">
<br><br>
<label for="heightInput" id="label">Enter your height: </label>
<input type="radio" id="radioCms" name="height">
<label for="radioCms">Centimeters</label>
<input type="radio" id="radioInches" name="height">
<label for="radioInches">Inches</label>
<input type="number" id="heightInput" value="0">
<br>
<button type="button" onclick="calculateBMI()">Submit</button>
<p id="result"></p>
</div>
<p id="author">Made by <a href="https://github.com/ganbnuray">Nuray Ganbarova</a></p>
<script src="index.js"></script>
</body>
</html>