C.W.K.
Stream
Quiz · 4 questions

🎯 Selectors & The Cascade

How CSS picks which rule wins, and why your !important happened

Level 0Markup Novice
0 XP0/34 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01Two rules target the same element: nav a { color: blue; } and .brand a { color: red; }. Which wins, and why?
02What does the :where() pseudo-class do that :is() doesn't?
Hint
Think about authoring a design system — which one lets consumers override without specificity wars?
03Which CSS properties inherit from parent to child by default?
04What does the :has() selector enable?
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.