Exercise
Make the checklist interactive
Add checkboxes, a count and Reset. Work from a copy.
Files
Prompt to start
Here is my five-item checklist: [paste the full file]. Keep every ID and label. Add a labelled checkbox for each item, a count such as 2 of 5 complete, and a Reset button. Use one complete HTML file with inline CSS and JavaScript. Start unchecked; state can reset on reload. Use no libraries or network requests.
Steps
- Paste the current five-item page into the prompt. Save the chatbot’s complete reply as setup-v3.html and open it.
- Tick the first and last boxes, then untick one. Watch the count at each step.
- Use Tab and Space to work a checkbox. Press Reset twice, then tick a box again.
- Close the chat tab and try the first check again.
HTML describes the parts of the page. CSS sets their appearance. JavaScript makes the count change and the Reset button work.
Check your result
- Count: 0 → 2 → 1 → 0 after Reset → 1 after ticking again.
- Labels and keyboard controls work. Reset clears every box, and a second Reset leaves the count at zero.