Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Simple To-Do List App

A beginner-friendly JavaScript To-Do List application that allows users to add and delete tasks dynamically using DOM manipulation.

πŸš€ Features

Add new tasks

Prevent empty tasks from being added

Delete tasks individually

Dynamic DOM updates (no page refresh)

πŸ› οΈ Built With

HTML5

CSS3

JavaScript (Vanilla JS)

πŸ“‚ Project Structure β”œβ”€β”€ index.html β”œβ”€β”€ index.css β”œβ”€β”€ index.js └── README.md πŸ“Œ How It Works

The page loads and waits for the DOM to fully initialize.

When the "Add Task" button is clicked:

The input value is collected.

If the input is empty, nothing happens.

A new

  • element is created.

    A Delete button is attached to the task.

    Clicking the Delete button removes the task from the list instantly.

    πŸ’» How to Run

    Clone the repository:

    git clone https://github.com/your-username/your-repo-name.git

    Open index.html in your browser.

    That’s it πŸŽ‰

    πŸ“– What I Learned

    DOMContentLoaded event

    Selecting elements with getElementById

    Creating elements dynamically with createElement

    Event handling with addEventListener

    Removing elements using .remove()

    🎯 Future Improvements

    Add task completion (strike-through)

    Add local storage support

    Add edit task feature

    Improve UI styling

  • About

    Resources

    Stars

    0 stars

    Watchers

    0 watching

    Forks

    Releases

    Packages

    Contributors

    Languages