CSS · Beginner · 29 lessons ready
CSS for beginners
A free CSS course for beginners who know basic HTML. Short lessons with live editors cover selectors, the box model, Flexbox, Grid and responsive design, ending with a landing page you style yourself.
YOUR NEXT SKILL
From curious to confident.
Learners who have finished the basics of HTML, or can already write a simple page. Every lesson builds on plain HTML you already understand.
- Connect a stylesheet and target exactly the elements you want with selectors
- Explain why a rule wins or loses, using the cascade and specificity
- Control spacing and size with the box model
- Build layouts with Flexbox and Grid instead of guesswork
- Make a page that adapts from phone to desktop
ONE STEP AT A TIME
Your CSS learning path
Read, experiment, and check what you know. Your completed lessons stay marked as you go.
Getting started
- What CSS is and how it works9 min
- Three ways to add CSS to a page10 min
- Selectors14 min
- The cascade and specificity13 min
- Inheritance10 min
Colour and text
- Colours12 min
- Units: px, rem, % and more12 min
- Fonts and text13 min
The box model
- The box model12 min
- Margin and padding13 min
- Borders and rounded corners11 min
- box-sizing10 min
- Width, height and overflow12 min
Layout
- The display property12 min
- Flexbox basics15 min
- Aligning with Flexbox12 min
- Grid basics15 min
- Grid areas12 min
- Positioning14 min
Responsive design
- Responsive design13 min
- Media queries13 min
- Responsive images with CSS12 min
Polish
- Backgrounds and gradients12 min
- Shadows11 min
- Transitions12 min
- Transforms12 min
- Animations13 min
- CSS variables13 min
Project
Final exam and certificate
Finish all 29 lessons to unlock a 15-question exam on CSS. Pass it and you get a certificate with a public link you can share.
Sign in to take the exam