-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (34 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unit Converter</title>
<link rel="stylesheet" href="index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
</head>
<body>
<div id="input-container">
<h1>Metric/Imperial Unit Conversion</h1>
<input type="number" id="user-input">
<button id="input-btn">Convert</button>
</div>
<div id="output-container">
<div class="conversion-container" id="length-container">
<h2>Length (Meter/Feet)</h2>
<p id="length">20 meters = 65.616 feet | 20 feet = 6.096 meters</p>
</div>
<div class="conversion-container" id="volume-container">
<h2>Volume (Liters/Gallons)</h2>
<p id="volume">20 liters = 5.284 gallons | 20 gallons = 75.708 liters</p>
</div>
<div class="conversion-container" id="mass-container">
<h2>Mass (Kilograms/Pounds)</h2>
<p id="mass">20 kilos = 44.092 pounds | 20 pounds = 9.072 kilos</p>
</div>
</div>
<script src="index.js"></script>
</body>
</html>