|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>To-Do List with Categories</title> |
| 7 | + <link rel="stylesheet" href="style.css"> |
| 8 | +</head> |
| 9 | +<body> |
| 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> |
| 36 | +</body> |
| 37 | +</html> |
0 commit comments