What you will learn
HTML says what is on a page. CSS says how it looks. This course takes you from your first style rule to a finished, responsive card layout.
- Rules and selectors: choose which elements to style by tag, class or id.
- Text and color: fonts, sizes, alignment, text and background colors.
- The box model: padding, borders and margins, the idea behind all spacing on the web.
- Layout: center content, and place things side by side with flexbox.
- Polish: hover effects, smooth transitions and media queries for phones.
Before you start
You should know basic HTML: tags, attributes and how elements nest. If that is new, take HTML Basics first. It takes about two hours.
How the lessons work
Each lesson gives you a small page with its HTML already written. You write the CSS in the style.css tab and the preview updates as you type. The checks look at how the page really renders, so there is often more than one correct way to write the answer.
Frequently asked questions
Do I need to know HTML first?
Yes, a little. You should be comfortable with tags, attributes and nesting. The HTML Basics course on this site covers everything you need.
Is this CSS course free?
Yes. Every lesson is free, with no account and no limits.
Does the course cover flexbox?
Yes. Two lessons cover placing items in a row, spacing them out, aligning them and letting them wrap, and the final project uses flexbox for a card layout.
How are my answers checked?
The checks measure the page in the preview: the real color, size or position of an element. That means you can use any valid CSS that produces the right result.
Do I get a certificate?
Yes. Finish every lesson to unlock a certificate of completion with your name on it. It is a personal record, not an accredited qualification.