-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (25 loc) · 1.06 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
<!DOCTYPE html>
<html lang="pt-BR">
<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" href="./css/style.css" />
<title>IMC</title>
</head>
<body>
<h1>IMC</h1>
<!-- Se informar no for o id, depois de clicar irá direto no input-->
<!-- forçar espaço-->
<label for="input-weight">Peso (kg): </label> <br />
<input id="input-weight" type="number" value="98" step="0.1" /> <br /> <br />
<label for="input-height">Altura (m): </label> <br />
<input id="input-height" type="number" value="1.78" step="0.01" />
<p>
<button id="button-calculate-imc"> Calcular IMC </button>
</p>
<p id="paragraph-result">O IMC desses dados é <strong id="imc-result">25,82</strong> </p>
<p>Este valor considera que você está na faixa <strong id="imc-range">Obesidade grau I</strong></p>
<script defer src="./js/script.js"></script>
</body>
</html>