Learn HTML & CSS
A free, hands-on tutorial that takes you from zero to building real web pages. Type real code, get instant feedback.
Start LearningLive Code Editor
Write HTML & CSS in a real code editor with syntax highlighting and see your changes instantly.
Instant Feedback
Check your answers against the solution. Get specific hints on what to fix.
No Setup Required
Everything runs in your browser. No downloads, no installs, no configuration.
What You'll Learn
Part 1: HTML Foundations
Chapters 1–5 — Document structure, text, formatting, lists, and links.
Part 2: HTML Deep Dive
Chapters 6–10 — Images, tables, forms, semantic HTML, and attributes.
Part 3: CSS Selectors
Chapters 11–17 — CSS basics, all selector types, the cascade, and specificity.
Part 4: CSS Styling
Chapters 18–23 — Colors, units, typography, backgrounds, borders, and the box model.
Part 5: Layout & Advanced CSS
Chapters 24–32 — Display, positioning, Flexbox, Grid, responsive design, animations, and a capstone project.
Ready to start building web pages?
Begin Chapter 1