Styling Pages With CSS: Selectors, Cascade, and Inheritance Quiz

Interactive Quiz ⋅ 12 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of Styling Pages With CSS: Selectors, the Cascade, and Inheritance.

By working through this quiz, you’ll revisit which declarations the browser drops, how rem, em and pixels resolve, which elements a selector matches, which rule wins, where inherited values come from, and what var() gives on each element.

Most questions show a short stylesheet and some HTML and ask what the browser does with them. Make your prediction before you pick an answer. Good luck!

The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer holds up a green garden web page beside a machine that sorts colored rule cards through tiers labeled Origin, Specificity and Order, turning plain pages into styled ones.

Course

Styling Pages With CSS: Selectors, the Cascade, and Inheritance

Give a community garden's website its first stylesheet, and learn to predict which CSS rule wins and why: selectors, the cascade, inheritance, custom properties and debugging in DevTools.

basics frontend