The To-Do List Web Application is a simple and interactive task management application built using HTML, CSS, and JavaScript. It allows users to add tasks dynamically and remove tasks easily with a double-click action.
This project demonstrates:
- DOM manipulation using JavaScript
- Event handling
- Dynamic creation of HTML elements
- Responsive web design using CSS
The application provides a clean and user-friendly interface for managing daily tasks.
- ➕ Add tasks dynamically
- ❌ Delete tasks by double-clicking
⚠️ Prevent adding empty tasks- 📱 Responsive design for mobile devices
- 🎨 Attractive and simple user interface
- HTML5
- CSS3
- JavaScript (Vanilla JS)
To-Do-List-App/
│
├── index.html # Main HTML structure
├── style.css # Styling file
├── script.js # JavaScript functionality
├── README.md # Project documentationContains:
- Input field for entering tasks
- Task list container
- Links to CSS and JavaScript files
Provides:
- Layout styling
- Responsive design
- Task item styling
- Background colors and alignment
Includes media queries for mobile responsiveness.
Handles:
- Adding new tasks
- Removing tasks
- Event listeners
- Input validation
Tasks are dynamically added to the task list using JavaScript DOM manipulation.
The user types a task into the input field.
When the user presses the Enter key:
- A new task item is created
- The task is added to the top of the list
- Empty tasks are prevented
if(e.key == "Enter")Double-clicking on a task removes it from the list.
li.addEventListener("dblclick", taskDeleter);git clone https://github.com/your-username/todo-list-app.gitcd todo-list-appOpen index.html in any web browser.
Input:
Buy groceries
Output:
Task added successfully
Double-click the task item to remove it.
The application adapts to smaller screen sizes using CSS media queries.
@media only screen and (max-width : 768px)- Rounded input box
- Styled task items
- Centered layout
- Clean color combination
- Mobile-friendly design
- Add task completion checkbox
- Store tasks using Local Storage
- Add edit task functionality
- Add dark mode
- Add task categories and priorities
- DOM Manipulation
- Event Handling
- JavaScript Functions
- CSS Flexbox
- Responsive Web Design
Contributions are welcome.
Steps:
- Fork the repository
- Create a new branch
- Make improvements
- Submit a pull request
This project is open-source and free to use for educational purposes.
Developed as a beginner-friendly JavaScript project for learning DOM manipulation and event handling.