Todo List App using HTML CSS & JavaScript

CodingNepal
3 min readDec 16, 2020
Todo List App using HTML CSS & JavaScript
Todo List App using HTML CSS & JavaScript

Hey friends, today in this blog you’ll learn how to create Todo List App using HTML CSS & JavaScript. In the previous blog, I’ve also shared how to create Todo App in JavaScript but in that program when you refresh your webpage, the lists or tasks that you’ve added are also removed. So today I came with another blog where I create Todo App and the lists or tasks that you add won’t be removed when you refresh the page and in this todo app there are also features of pending tasks number and you can also delete all tasks that you have added on single click.

As you may know, A to-do list is a list of tasks you need to complete or things that you want to do and in our design [Todo List App], at first, there is a content-box that holds only the input field with some buttons and text. When you entered some characters and click on the plus (+) button, the list will be added to your tasks list and the number of the pending tasks also updated. You can also delete each list by clicking on the trash icon, and remember this trash icon only appear on hover on the particular list and you can also delete all task with a single click.

If you want to see this to-do list app and how it is created then you can watch a full video tutorial on this program [Todo List App in JavaScript].

Video Tutorial of Todo List App in JavaScript

Video Tutorial of Todo List App in JavaScript

In the video, you have seen the to-do list app and how it is created using HTML CSS & JavaScript. I hope you’ve understood the codes behind creating this program. You may difficult to understand the JavaScript codes of this program but don’t worry once you download the code files of this program and try with yourself, you’ll easily understand.

You may wonder about how these todo app tasks still remain even after refreshing the webpage right? Well, at first, the tasks you’ve added will store in the local storage of your browser and then these lists are retrieved into an HTML file in the form <li> tag using JavaScript. You may feel difficult to understand what I’m saying right? If yes then you’ve to watch the video again and again because in the video I have written the comment of each JavaScript line and tried my best to understand the codes for you.

Todo List App in JavaScript [Source Codes]

To create this program [Todo List App]. First, you need to create two files one HTML File and another one is CSS File. After creating these files just paste the following codes into your files. You can also download the source code files from the given link. Click here to download the code files.

Originally published at https://www.codingnepalweb.com on December 16, 2020.

--

--

CodingNepal

CodingNepal is a blog where we post blogs related to HTML, CSS, JavaScript & PHP along with creative coding stuff.