Selectors
How CSS points at elements: type, class and ID selectors, combinators, attributes, pseudo-classes, :is/:where/:has and pseudo-elements.
Every CSS rule starts with a selector: the part that says *which* elements the rule applies to. If the selector is wrong, nothing else in the rule matters, because it never reaches the element. This phase teaches every kind of selector you'll use in real projects, from p and .card to li:nth-child(2n+1) and .card:has(img).
You'll start with the three basic selectors (type, class, ID), then learn to describe relationships between elements with combinators, match on attributes, react to state with pseudo-classes (hover, focus, checked, position in a list), combine conditions with :not(), :is(), :where() and :has(), and finally style parts of elements that aren't in the HTML at all with pseudo-elements.
Along the way you'll see how each selector affects specificity (the score that decides which rule wins; Phase 2 goes deep on it), how browsers match selectors right to left, and which selectors cause accessibility or performance trouble. Every example is live: edit the selector and watch which elements light up.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.