انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Web: home
0. Lab tour1
1. HTML: the page's content7
2. CSS: the page's look6
3. JavaScript: the actions7
4. The project: the to-do list3
5. Pro CSS: shadows and movement5
6. Arrays and building the page with code3
7. Events and forms3
8. Objects and time3
9. Canvas: drawing and games3
10. The final project: the memory game3

The idea and the plan

Section 4: The project: the to-do listLesson 4.1 · ⏱ 6 min

A small app: you type a task and click add, and it appears in the list. This is a real example of what programmers do every day.

  • HTML: a text box <input>, a button, and an empty list <ul>.
  • JavaScript: when clicked we make a new <li> with createElement and add it with appendChild.
  • Then we empty the box so you can type the next task.
Finished the lesson? Mark it so your progress counts.