This is a simple web-based To-Do App for student practice. It includes HTML, CSS, and a JavaScript stub for you to implement the main functionality.
index.html— Main HTML file with the app layoutstyles.css— CSS file for styling the appscript.js— JavaScript file with a function stub for adding tasks
- Open the project folder in VS Code.
- Open
script.jsand implement theaddTaskfunction using the comments as a guide. Your function should:- Read the input value
- Validate it (not empty)
- Create a new list item with task text
- Add complete and remove buttons
- Add the item to the task list
- Clear the input field
- Style the app in
styles.cssif you want to customize the look and feel. - Open
index.htmlin your browser to test your implementation.
- Use DOM methods like
document.getElementById,document.createElement, andelement.appendChild. - Use event listeners for button actions.
- You can use the provided CSS or modify it to your liking.
- Add tasks
- Mark tasks as completed
- Remove tasks
Happy coding!