Output 5: To-Do List Application

To-Do List

Add tasks, mark them complete, and remove them

No tasks yet. Add one to get started!

Features: Add new tasks using the form. Check the checkbox to mark tasks as complete (shown with strikethrough). Click Remove to delete tasks from the list.

Source Code

<!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</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <form id="taskForm">
        <input type="text" id="taskInput" placeholder="Enter new task" required>
        <button type="submit">Add Task</button>
    </form>
    <ul id="taskList"></ul>
    <script src="script.js"></script>
</body>
</html>