Skip to content
Retr0 Academy
CSS

CSS · 10 questions

CSS quiz

Answer every question, then score the quiz. The result is saved in this browser.

1. In the rule `p { color: red; }`, what is `color`?
2. Which is the recommended way to add CSS to a multi-page website?
3. Which selector has the highest specificity?
4. What does `a:hover` select?
5. With `box-sizing: border-box`, what does `width: 200px` include?
6. If the root font size is 16px, how big is 2rem?
7. In Flexbox with the default `flex-direction: row`, which property centers items horizontally?
8. What does `grid-template-columns: repeat(3, 1fr)` create?
9. In mobile-first CSS, which media query typically adds styles for larger screens?
10. Which properties are cheapest for the browser to animate smoothly?