-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (44 loc) · 1.42 KB
/
index.html
File metadata and controls
44 lines (44 loc) · 1.42 KB
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
<!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" />
<title>BMI Calculator</title>
<link rel="stylesheet" href="./index.css" />
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
<div class="grid h-screen place-items-center">
<form
method="post"
class="bg-gray-300 border-black border-solid border-x-2 border-y-4 rounded-xl p-2"
>
<h1
class="mx-5 mt-5 mb-10 w-max text-center font-extrabold text-3xl font-sans hover:font-mono"
>
BMI Calculator
</h1>
<input
type="text"
name="weight"
placeholder="Enter Weight (in kilograms)"
class="m-2 py-1 px-2 rounded border-solid border-gray-500 border-2"
/>
<input
type="text"
name="height"
placeholder="Enter Height (in meters)"
class="m-2 py-1 px-2 rounded border-solid border-gray-500 border-2"
/>
<button
type="submit"
name="submit"
class="text-center font-semibold m-2 p-2 hover:text-white hover:bg-black rounded-xl bg-white text-black border-solid border-black border-4"
>
Calculate BMI
</button>
</form>
</div>
</body>
</html>