-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (36 loc) · 1.54 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
43
44
45
46
47
48
49
50
<!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">
<link rel="stylesheet" media="screen and (min-width: 701px)" href="CSS/styles.css">
<link rel="stylesheet" media="screen and (max-width: 700px)" href="CSS/styles2.css">
<script src="JS/calculate.js" defer></script>
<title>BMI calculator</title>
</head>
<body>
<div class="content">
<h1>Simple BMI calculator</h1>
<div class="calculator">
<div class="core first">
<div class="data">
<label for="weight">Your weight:</label>
<input type="number" id="weight" name="weight" value="60.50" min="1" max="500" step="0.1" required/>kg
<label for="height">Your height:</label>
<input type="number" id="height" name="height" value="1.75" min="0.5" max="2.2" step="0.01" required/>m
</div>
<button id="calculate">Calculate BMI</button>
</div>
<hr id="hr"/>
<div class="core BMImessage">
<p>
<span id="message"></span><span id="bmi"></span><span id="details"></span>
<span class="error" id="height_error"></span>
<span class="error" id="weight_error"></span>
</p>
</div>
</div>
</div>
</body>
</html>