Learn CSS
A free, interactive CSS course. You style real HTML on every lesson - selectors, the box model, colors, fonts, flexbox, grid, responsive design - with a live preview as you type and a free certificate when you finish. Part of the wider HTML journey, so the markup context CSS needs is right there.
348,572+ codders enrolled
119 lessons114 challenges582 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Quizzes to test your knowledge
Free certificate of completion
Syllabus
This section is part of the HTML Journey. The full syllabus has more sections: click any preview below to view it on the Journey page.
- Section 1Fundamentals60 lessons
Section 2
Styling with CSS
Start sectionStartBring your web pages to life with colors, layouts, and stylesIntroduction
5 lessons540Adding CSS
4 lessons725Basic Selectors
7 lessons1247Text Fundamentals
8 lessons1450Colors and Backgrounds
5 lessons834Cafe Menu
Project3 lessons3Box Model Part 1
6 lessons943Box Model Part 2
5 lessons833Flex Box
6 lessons943Login Form
Project4 lessons4Layout Techniques
7 lessons1151Responsive Design Basics
6 lessons1052Tonga Webpage
Project6 lessons6Final Challenges
4 lessons4Section 3
CSS Mastery
Start sectionStartTake you css skills to the next level!Selector Mastery – Combination
6 lessons539Interactive Pseudo-Classes
5 lessons431Structural pseudo-classes
5 lessons432Dropdown Menu Project
4 lessons4Visual effects
5 lessons536Landing Page
5 lessons5Build with CSS Grid
4 lessons426Flavor Fiesta website
4 lessons4Final Challenges
5 lessons5- Section 4Practical Frontend35 lessons
- Section 5JavaScript in Action27 lessons
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
Code Anywhere
Take your coding journey on the go! No setup, no downloads: just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.
You're Not Alone
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time. Reassigning the name simply points it to a new value.
Earn a Certificate
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn CSS with Coddy
- Write CSS in your browser and watch the page restyle live. No build step, no editor setup. Every change to a selector or property shows up instantly so you see what each rule actually does.
- Core CSS: selectors and specificity, the box model, positioning, flexbox, CSS grid, transitions, media queries, and responsive design. The CSS every front-end developer needs day-to-day.
- AI hints help you debug the things that always trip people up - specificity surprises, layout overflows, weird flexbox behavior - without spoiling the fix, so CSS becomes intuitive instead of magical.
- Free CSS certificate when you finish the section. Pairs naturally with the HTML and JavaScript courses for a full front-end foundation.
Frequently asked questions about learning CSS
What is CSS?
CSS (Cascading Style Sheets) is the language that controls how HTML pages look - colors, fonts, spacing, layout, animations, responsive behavior across screen sizes. HTML defines what's on the page; CSS defines how it's presented.
Is CSS hard to learn?
Basic CSS - selectors, colors, fonts, the box model - is easy to pick up in a few hours. The harder parts come later: specificity rules, flexbox and grid layouts, and making things look right on every screen size. The course introduces them in small steps with a live preview, so you see exactly what each rule does.
Should I learn HTML before CSS?
Yes. HTML defines the structure of a page; CSS styles it. Without HTML you have nothing to style. This CSS section is part of the HTML journey for that reason - the HTML fundamentals section comes first, then you spend the bulk of the journey styling it.
What is the difference between CSS, Flexbox, and Grid?
Flexbox and Grid are layout modules inside CSS - they're not separate technologies, they're CSS features. Flexbox is best for one-dimensional layouts (a row of cards, a navbar). Grid is best for two-dimensional layouts (a whole page, a complex card layout). Most real sites use both, and the course covers when to reach for each.
Can I learn CSS online for free?
Yes. The interactive CSS section is free - full lessons, coding exercises, a live preview, and a certificate. Everything runs in the browser so you don't need to install any editor or tooling to start.
Do I get a certificate after the CSS course?
Yes. Finishing the CSS section gives you a free certificate of completion. A verifiable proof point you can add to your resume or share on LinkedIn alongside HTML and JavaScript certificates as part of a front-end portfolio.