Skip to main content

Course

HTML and CSS

HTML and CSSPart 3 of 6 · Chapter 3 of 5

Why Your Rule Did Not Apply

Two rules target the same element and one of them wins, by a procedure that is completely deterministic and almost never taught. Score two selectors against each other and find out why the one you wrote lost.

Read first: Choosing What to Style


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.