-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcalorie-calculator.html
More file actions
39 lines (37 loc) · 1.23 KB
/
calorie-calculator.html
File metadata and controls
39 lines (37 loc) · 1.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Calorie Calculator</title>
<link rel="stylesheet" href="stylesheets/calorie-calculator.css" />
</head>
<body>
<div class="container">
<h1>Calorie & Macro Calculator</h1>
<form id="calcForm">
<label>Age: <input type="number" id="age" required></label>
<label>Gender:
<select id="gender">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</label>
<label>Weight (kg): <input type="number" id="weight" required></label>
<label>Height (cm): <input type="number" id="height" required></label>
<label>Activity Level:
<select id="activity">
<option value="1.2">Sedentary</option>
<option value="1.375">Light</option>
<option value="1.55">Moderate</option>
<option value="1.725">Active</option>
<option value="1.9">Very Active</option>
</select>
</label>
<button type="submit">Calculate</button>
</form>
<div id="result"></div>
</div>
<script src="scripts/calorie-calculator.js"></script>
</body>
</html>