Skip to content

← Code

Web Basics — HTML & CSS

Start from zero. Short steps. Build a real web page.

html 21 Lessons

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with notes in English and Chinese.

Start the course

Lessons in this course

  1. history A short history of the web
  2. usage What a web page is made of
  3. resources Where to learn more
  4. setup What you need (almost nothing)
  5. 01 Your first web page
  6. 02 Headings and paragraphs
  7. 03 Bold, italic and line breaks
  8. 04 Lists
  9. 05 Links
  10. 06 Images
  11. 07 Make it a real page
  12. 08 Comments and neat nesting
  13. 09 Tables
  14. 10 Forms
  15. 11 Boxes and sections
  16. 12 Add some style
  17. 13 Selectors — class and id
  18. 14 Colours and backgrounds
  19. 15 Styling text
  20. 16 The box model
  21. 17 Spacing — margin and padding
  22. 18 Showing and hiding (display)
  23. 19 Width and centering
  24. 20 Rows with Flexbox
  25. 21 Mini-project: a profile card

Language reference

/know/reference/html

Log in or create account

IGCSE, A-Level & AP