Introduction

Welcome to the CSS handbook! I'm Juno, and this is my favourite part of the web to teach. HTML gives you the structure of a page, and CSS is where it comes to life: colour, spacing, type, the whole look of the thing.
We'll start from the very first line of CSS and build up slowly, one idea at a time. If you can write a little HTML, you are ready for everything here.
Nothing is ever too basic to ask about, so go at your own pace and we'll get there together!
This handbook is for anyone who can write a bit of HTML and wants their pages to look the way they picture them. CSS, which stands for Cascading Style Sheets, is the language that describes how a page looks: its colours, fonts, spacing, and the arrangement of everything on screen. HTML says what is on the page; CSS says how it should appear. A quick word on two terms you'll see throughout: a property is one thing you can style, like color or font-size, and a selector is how you point CSS at the elements you want to style. Every concept here is written out in full, with depth, examples, and something to search whenever you need a quick answer.
You do not need any design background to start. If you can put a heading and a paragraph on a page, you have enough to begin, and everything else is introduced as it comes up. CSS is the second language almost every web developer learns, right after HTML, because a page without it is nothing but unstyled text.
The handbook works its way from the ground up. You'll learn how to attach styles to a page and target the right elements, how the box model controls spacing and size, how to work with colour and type, and then how to lay a page out with flexbox and grid and make it respond to any screen. Each idea is small on its own, and they stack into interfaces you can actually ship.
The approach here is to explain what each piece of CSS does and why, not only what to type. Anyone can paste a property from an example and watch something shift on screen. The distance between that and building layouts that adapt, stay readable, and stay cheap to change is understanding how the browser decides what your styles mean when they overlap. That understanding is what outlasts any single project.
Meet your guides
This handbook is hosted by three guides, and you pick which one shows you around. The material is the same for everyone; your guide sets the voice it is told in, and on the pages that adapt, how deep each section goes.
- Juno teaches the beginner track: warm and patient, plain analogies, nothing assumed.
- Ace teaches the intermediate track: practical and build-first, straight to what you actually do.
- Sol teaches the Deep Dive: the mechanism, the trade-offs, and the production details everyone else skips.
Switch guide any time from the picker at the top of any page, or open Preferences at the bottom right to change your guide, language, or font size.
When you're set, the handbook starts in earnest. The next chapter, What is CSS, covers what CSS really is, how it pairs with HTML, and the small vocabulary of rules, selectors, and properties that the whole rest of the track is built from.
Prefer to learn by building?Scrimba's free HTML and CSS course covers the same ground through five projects and 75+ interactive challenges.
