color: .class { } @media :hover

CSS from A to Z

The world's easiest CSS course — explained so simply a 12-year-old could learn it and teach it. Every property, every trick, every "wow".

1️⃣ Read the plain words 2️⃣ Peek at the code 3️⃣ See the live preview 4️⃣ Learn the property dictionary 5️⃣ Copy & try it yourself

🔬 First: anatomy of a CSS rule

Every rule answers 3 questions: WHO gets styled (selector), WHAT changes (property), and HOW (value).

selector = WHOp
open the box{
property = WHATcolor:
value = HOWred
full stops; }

One file can hold thousands of rules. The browser reads them top-to-bottom — that's the "Cascading" in CSS.