Course details
CSS
Learn how CSS attaches to HTML, how a rule is built, how selectors pick exactly the elements you mean, and how the cascade settles conflicts. You finish by setting type that is comfortable to read.
Course curriculum
Introduction3 lessons
Meet the café page you will style for the whole course, see why CSS can only style what HTML has named, and learn how the three frontend languages divide the work.
CSS Basics4 lessons
Attach styles inline, inside a style element and from an external file, learn when each one fits, and then predict which declaration wins when several target the same element.
Rules3 lessons
Learn the shape of every CSS rule, the kinds of values properties accept, why the browser silently skips mistakes, and how to leave comments that help the next reader.
Simple Selectors5 lessons
Select by element type, class, id and attribute, group selectors with commas, and learn how much weight each kind carries when rules compete.
Combinator Selectors4 lessons
Combine selectors to reach elements through their family relationships: anywhere inside, directly inside, right after and anywhere after.
Fonts and Text Styling5 lessons
Choose font stacks and web fonts, size text in units that respect the reader, use weights, styles and the font shorthand safely, then control colour, alignment, line height and spacing.
