-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (36 loc) · 1.34 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
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do List App</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>To-Do List App</h1>
<!-- Form to add tasks -->
<form id="taskForm">
<input type="text" id="taskInput" placeholder="Add your task" required />
<select id="taskCategory">
<option value="Work">Work</option>
<option value="Personal">Personal</option>
<option value="Shopping">Shopping</option>
<option value="Fitness">Fitness</option>
<option value="Custom">Custom (add below)</option>
</select>
<input type="text" id="customCategory" placeholder="Enter custom category (optional)" />
<!-- Priority selection -->
<select id="taskPriority">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
<button type="submit">Add Task</button>
</form>
<!-- List to display tasks -->
<div id="tasksList"></div>
</div>
<script src="script.js"></script>
</body>
</html>