-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
32 lines (28 loc) · 1.01 KB
/
index.php
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<script src="/main.js"></script>
<title>Calculadora de IMC</title>
</head>
<body>
<div class="container">
<h1>Calculadora de IMC</h1>
<form id="imcForm">
<label for="peso">Informe seu peso (kg):</label>
<input type="number" id="peso" required>
<label for="altura">Informe sua altura (m):</label>
<input type="number" id="altura" step="0.01" required>
<button type="button" id="calcularButton">Calcular</button>
</form>
<div id="resultado" class="hidden">
<h2>Resultado</h2>
<p>Seu IMC é: <span id="imcResult"></span></p>
<p>Classificação: <span id="classificacao"></span></p>
</div>
</div>
<script src="script.js"></script>
</body>
</html>