SlideShare a Scribd company logo
Building a To-Do List App
BY
GEVITA CHINNAIAH
Project Setup and Basic Structure
• Introduction to XAMPP
– What is XAMPP?
– XAMPP is a free, open-source cross-platform
web server solution stack package developed
by Apache Friends. It provides a simple way
to set up a local server environment on your
computer.
Overview of the Project: To-Do List App
• What is the To-Do List App?
– A simple web application that helps users
manage tasks by allowing them to add, mark
as completed, and delete tasks.
• Key Features of the To-Do List App
– Task Input
– Add Task
– Task List
– Delete Task
– Mark as Completed
Setting Up XAMPP
• Install XAMPP
• Configure XAMPP
• Access the htdocs Folder
– http://localhost
Creating the Project Folder
• Create the todo-app Folder
– http://localhost/todo_app/
Writing the HTML
Styling and Basic JavaScript Functionality
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
margin: 0;
padding: 0;
}
.container {
margin-top: 50px;
}
input {
width: 300px;
padding: 10px;
font-size: 16px;
margin-bottom: 10px;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
ul {
list-style-type: none;
padding: 0;
}
li {
background: #fff;
margin: 5px 0;
padding: 10px;
border: 1px solid #ddd;
display: flex;
justify-content: space-between;
align-items: center;
}
Adding Basic JavaScript
document.getElementById('addTaskBtn').a
ddEventListener('click', addTask);
function addTask() {
const taskInput =
document.getElementById('taskInput');
const taskText = taskInput.value.trim();
if (taskText === '') {
alert('Please enter a task.');
return;
}
const taskList =
document.getElementById('taskList');
const taskItem =
document.createElement('li');
taskItem.textContent = taskText;
const deleteBtn =
document.createElement('button');
deleteBtn.textContent = 'Delete';
deleteBtn.addEventListener('click',
() => taskItem.remove());
taskItem.appendChild(deleteBtn);
taskList.appendChild(taskItem);
taskInput.value = '';
}
Enhancing Functionality and Testing
• Implement marking
tasks as completed
• JAVASCRIPT.
taskItem.addEventLi
stener('click', () => {
taskItem.classList.to
ggle('completed');
});
• Add CSS for
completed tasks
.completed {
text-decoration:
line-through;
color: gray;
}
THANK YOU

More Related Content

PDF
webtech report water is not working properly
PPTX
Design Patterns for JavaScript Web Apps - JavaScript Conference 2012 - OPITZ ...
PPTX
mini-project.pptx
PPTX
Mobile Application Development Mobile Application Development
PDF
Dharmpal Verma Resume
PPTX
SQLite3 Beginners Demonstration for easy use.pptx
PPTX
Presentation (4).pptx
webtech report water is not working properly
Design Patterns for JavaScript Web Apps - JavaScript Conference 2012 - OPITZ ...
mini-project.pptx
Mobile Application Development Mobile Application Development
Dharmpal Verma Resume
SQLite3 Beginners Demonstration for easy use.pptx
Presentation (4).pptx

Similar to Building a To-Do List App lecture 1.pptx (7)

PPTX
To_Do_List_Project_APPLICATIONPresentation.pptx
PDF
Smart todolist
DOCX
Mahesh Tamboli(Android developer)
PDF
How to build to do app using vue composition api and vuex 4 with typescript
PPTX
To-do list app powerpoint presentation project
PPTX
Code Bootcamp for Kids- Learn Programming -Texavi AnalystZone by Pardha Sarad...
PDF
How to Build ToDo App with Vue 3 + TypeScript
To_Do_List_Project_APPLICATIONPresentation.pptx
Smart todolist
Mahesh Tamboli(Android developer)
How to build to do app using vue composition api and vuex 4 with typescript
To-do list app powerpoint presentation project
Code Bootcamp for Kids- Learn Programming -Texavi AnalystZone by Pardha Sarad...
How to Build ToDo App with Vue 3 + TypeScript
Ad

More from GevitaChinnaiah (20)

PPTX
Mobile Application and Developments.pptx
PPTX
White Box Testing on a Python Function.pptx
PPTX
Software Quality and Testing note 1.pptx
PPTX
Introduction to JavaScript DOM and User Input.pptx
PPT
391Lecture0909 Vision control of git.ppt
PPTX
Introduction to Python and Basic Syntax.pptx
PPTX
Software Programming with Python II.pptx
PPT
a basic java programming and data type.ppt
PPTX
Install an Operating System.pptx
PPTX
Solve Stop Code Memory Management on Windows.pptx
PPTX
windows memory management.pptx
PPTX
Introduction to Database Management.pptx
PPT
OPERATING SYSTEM CHAPTER 3.ppt
PPTX
Lecture 3 React Native with Database.pptx
PPTX
Database Management System (DBMS).pptx
PPTX
Operating System chapter 1.pptx
PPTX
Lecture 2 Styling and Layout in React Native.pptx
PPTX
Lecture 1 Introduction to React Native.pptx
PPTX
Understanding Applications.pptx
PPTX
Operating System 2.pptx
Mobile Application and Developments.pptx
White Box Testing on a Python Function.pptx
Software Quality and Testing note 1.pptx
Introduction to JavaScript DOM and User Input.pptx
391Lecture0909 Vision control of git.ppt
Introduction to Python and Basic Syntax.pptx
Software Programming with Python II.pptx
a basic java programming and data type.ppt
Install an Operating System.pptx
Solve Stop Code Memory Management on Windows.pptx
windows memory management.pptx
Introduction to Database Management.pptx
OPERATING SYSTEM CHAPTER 3.ppt
Lecture 3 React Native with Database.pptx
Database Management System (DBMS).pptx
Operating System chapter 1.pptx
Lecture 2 Styling and Layout in React Native.pptx
Lecture 1 Introduction to React Native.pptx
Understanding Applications.pptx
Operating System 2.pptx
Ad

Recently uploaded (20)

PPTX
AcademyNaturalLanguageProcessing-EN-ILT-M02-Introduction.pptx
PPTX
Self management and self evaluation presentation
PPTX
The Effect of Human Resource Management Practice on Organizational Performanc...
PDF
natwest.pdf company description and business model
PPTX
Human Mind & its character Characteristics
PPTX
nose tajweed for the arabic alphabets for the responsive
PPTX
2025-08-10 Joseph 02 (shared slides).pptx
PPTX
Tour Presentation Educational Activity.pptx
PPTX
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
PPTX
chapter8-180915055454bycuufucdghrwtrt.pptx
PDF
Microsoft-365-Administrator-s-Guide_.pdf
DOCX
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
PPTX
Project and change Managment: short video sequences for IBA
PPTX
Research Process - Research Methods course
PPTX
PurpoaiveCommunication for students 02.pptx
PPTX
Hydrogel Based delivery Cancer Treatment
PPTX
water for all cao bang - a charity project
PPTX
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
PDF
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
PPTX
Tablets And Capsule Preformulation Of Paracetamol
AcademyNaturalLanguageProcessing-EN-ILT-M02-Introduction.pptx
Self management and self evaluation presentation
The Effect of Human Resource Management Practice on Organizational Performanc...
natwest.pdf company description and business model
Human Mind & its character Characteristics
nose tajweed for the arabic alphabets for the responsive
2025-08-10 Joseph 02 (shared slides).pptx
Tour Presentation Educational Activity.pptx
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
chapter8-180915055454bycuufucdghrwtrt.pptx
Microsoft-365-Administrator-s-Guide_.pdf
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
Project and change Managment: short video sequences for IBA
Research Process - Research Methods course
PurpoaiveCommunication for students 02.pptx
Hydrogel Based delivery Cancer Treatment
water for all cao bang - a charity project
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
Tablets And Capsule Preformulation Of Paracetamol

Building a To-Do List App lecture 1.pptx

  • 1. Building a To-Do List App BY GEVITA CHINNAIAH
  • 2. Project Setup and Basic Structure • Introduction to XAMPP – What is XAMPP? – XAMPP is a free, open-source cross-platform web server solution stack package developed by Apache Friends. It provides a simple way to set up a local server environment on your computer.
  • 3. Overview of the Project: To-Do List App • What is the To-Do List App? – A simple web application that helps users manage tasks by allowing them to add, mark as completed, and delete tasks. • Key Features of the To-Do List App – Task Input – Add Task – Task List – Delete Task – Mark as Completed
  • 4. Setting Up XAMPP • Install XAMPP • Configure XAMPP • Access the htdocs Folder – http://localhost
  • 5. Creating the Project Folder • Create the todo-app Folder – http://localhost/todo_app/
  • 7. Styling and Basic JavaScript Functionality body { font-family: Arial, sans-serif; background-color: #f4f4f4; text-align: center; margin: 0; padding: 0; } .container { margin-top: 50px; } input { width: 300px; padding: 10px; font-size: 16px; margin-bottom: 10px; } button { padding: 10px 20px; font-size: 16px; cursor: pointer; } ul { list-style-type: none; padding: 0; } li { background: #fff; margin: 5px 0; padding: 10px; border: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; }
  • 8. Adding Basic JavaScript document.getElementById('addTaskBtn').a ddEventListener('click', addTask); function addTask() { const taskInput = document.getElementById('taskInput'); const taskText = taskInput.value.trim(); if (taskText === '') { alert('Please enter a task.'); return; } const taskList = document.getElementById('taskList'); const taskItem = document.createElement('li'); taskItem.textContent = taskText; const deleteBtn = document.createElement('button'); deleteBtn.textContent = 'Delete'; deleteBtn.addEventListener('click', () => taskItem.remove()); taskItem.appendChild(deleteBtn); taskList.appendChild(taskItem); taskInput.value = ''; }
  • 9. Enhancing Functionality and Testing • Implement marking tasks as completed • JAVASCRIPT. taskItem.addEventLi stener('click', () => { taskItem.classList.to ggle('completed'); }); • Add CSS for completed tasks .completed { text-decoration: line-through; color: gray; }