Style real pages with CSS: selectors, the cascade, color, the box model, backgrounds, and typography.
HTML gives a page its structure. CSS is what people actually see: color, typography, spacing, and the visual style of every element. This course starts with your very first CSS rule that changes a single color and builds up to styling a complete page from an empty stylesheet. It focuses on styling; arranging layouts with rows, columns, and grids is covered in the next course, CSS Layout.
Each concept follows the same pattern: a short lesson alongside a live editor, followed by a practice that checks itself as the preview updates. Clear goals tell you exactly what needs to pass. You learn the box model by watching padding push content outward, color by creating it in multiple ways, and the cascade by seeing one rule override another.
You begin with everything in one file, then learn the three ways CSS can be applied. From there, you move to real-world structure: a separate stylesheet linked to your page. Every exercise then uses two files, index.html and styles.css, just like real projects.
Along the way, you build four practical pieces: a profile card, a designed “special of the day” card, a styled article, and a final café landing page, all using CSS you write yourself. Complete everything to earn a verifiable certificate. No installs or setup required: write CSS in the browser code editor, press Check, and watch in real time.
42 Lessons • 51 Practices • 16 Quizzes • 4 Projects · ~9h Total
Not just theory. You finish this course with real work to show.
This is the same in-browser editor every lesson uses. Edit the code, hit Run.
Run code in the browser and see the result immediately. Every lesson works this way.
Stuck? Puff explains the error and nudges you forward, without giving the answer away.
Streaks, diamonds, and certificates. Your progress saves automatically, forever.
Every completed course issues a certificate with a public verification link.
Every certificate has a public verification link employers can check.
One certificate per course. Finish a program and earn its program certificate too.
LinkedIn-ready, with a PDF you can download and attach.
You can build the page. Now make it look like you meant it.
You have pasted CSS that worked without knowing why. This replaces luck with a model.
You know exactly how it should look. Learn to make the browser agree.
Yes, all of it. Every section of CSS Basics is free, including the certificate. Create an account, start learning, and your progress saves automatically. No credit card needed.
Yes, or know its ground: elements, attributes, classes, and page structure. Every exercise here styles HTML you should be able to read comfortably.
No. Everything runs in your browser on Devpuff: you write CSS in the editor, press Check, and the preview repaints instantly.
About nine hours of hands-on work: 113 short items across eight sections, most under five minutes each. A steady 20 minutes a day finishes it in about a week.
Four real pieces: a profile card, a special-of-the-day card, a styled article, and a fully styled café landing page.
No, and that is on purpose. This is the styling half of CSS: color, the box model, backgrounds, and type. Arranging boxes with flexbox, grid, positioning, and responsive design is CSS Layout, the next course on Devpuff.
Yes. Finish every item in CSS Basics, and Devpuff will issue a course certificate with a public link that anyone can verify.
How this course connects to the bigger picture, and what to explore next.
Lay out real pages with flexbox, CSS grid, positioning, and responsive design that works on any screen.
Write real web pages by hand: document structure, text, links, lists, images, semantic HTML, and forms.
Start programming for real: variables, strings, decisions, arrays, loops, functions, and objects.
Every section is free, no credit card required. Write real code from the first lesson and keep your progress forever.
Start Learning Free