Skip to content

Commit 031ec3a

Browse files
committed
Add buton and options
1 parent a4eb9c3 commit 031ec3a

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

Source-Code/ToDoList/index.html

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,35 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Document</title>
6+
<title>To-Do List with Categories</title>
7+
<link rel="stylesheet" href="style.css">
78
</head>
89
<body>
9-
10+
<div class="container">
11+
<h1>To-Do List</h1>
12+
<div class="form-container">
13+
<input type="text" id="task-input" placeholder="Enter task" />
14+
<select id="category-select">
15+
<option value="">Select Category</option>
16+
<option value="Work">Work</option>
17+
<option value="Personal">Personal</option>
18+
<option value="Urgent">Urgent</option>
19+
</select>
20+
<button class="add-btn">Add Task</button>
21+
</div>
22+
<div class="filter-container">
23+
<label for="filter-select">Filter by Category:</label>
24+
<select id="filter-select">
25+
<option value="">All</option>
26+
<option value="Work">Work</option>
27+
<option value="Personal">Personal</option>
28+
<option value="Urgent">Urgent</option>
29+
</select>
30+
</div>
31+
<ul id="task-list">
32+
<!-- Tasks will be dynamically inserted here -->
33+
</ul>
34+
</div>
35+
<script type="module" src="index.js"></script>
1036
</body>
11-
</html>
37+
</html>

0 commit comments

Comments
 (0)