22< html lang ="en ">
33< head >
44 < meta charset ="UTF-8 " />
5- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 "/>
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
66 < title > ToDo List</ title >
77 < link rel ="stylesheet " href ="style.css " />
8- < link href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css " rel ="stylesheet ">
8+ < link href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css " rel ="stylesheet " / >
99
1010 < script type ="module " src ="script.mjs "> </ script >
1111</ head >
1414 < h1 > My ToDo List</ h1 >
1515
1616 < div class ="todo-input ">
17- < input type ="text " id ="new-task-input " placeholder ="Enter a new task... " />
18- < input type ="date " id ="new-task-deadline " />
19- < button id ="add-task-btn "> Add</ button >
20- </ div >
17+ < input type ="text " id ="new-task-input " placeholder ="Enter a new task... " />
18+ < input type ="date " id ="new-task-deadline " />
19+ < button id ="add-task-btn "> Add</ button >
20+ </ div >
2121
22-
23- < ul id ="todo-list " class ="todo-list ">
24- </ ul >
22+ < ul id ="todo-list " class ="todo-list "> </ ul >
23+
2524 < button id ="delete-completed-btn "> Delete completed tasks</ button >
2625
27-
2826 <!--
2927 This is a template for the To-do list item.
3028 It can simplify the creation of list item node in JS script.
3129 -->
3230 < template id ="todo-item-template ">
3331 < li class ="todo-item "> <!-- include class "completed" if the task completed state is true -->
3432 < span class ="description "> Task description</ span >
35- < span class ="deadline "> </ span >
36- < div class ="actions ">
33+ < span class ="deadline "> </ span >
34+ < div class ="actions ">
3735 < button class ="complete-btn "> < span class ="fa-solid fa-check " aria-hidden ="true "> </ span > </ button >
3836 < button class ="delete-btn "> < span class ="fa-solid fa-trash " aria-hidden ="true "> </ span > </ button >
3937 </ div >
4038 </ li >
4139 </ template >
42-
4340 </ div >
4441</ body >
45- </ html >
42+ </ html >
0 commit comments