Tutorials › CSS Tutorial › CSS Quiz

CSS Quiz

10 min read · Lesson 21 of 21

Test what you have learned in this tutorial. Choose one answer for each question. If you get one wrong, revisit the lesson it comes from; the CSS Property Reference is a handy summary.

Quiz 15 questions
1. What does CSS stand for?
2. Which is the correct way to link an external stylesheet?
3. Which selector targets every element with class="price"?
4. Which colour value is the same as pure white?
5. An element has width: 200px, padding: 10px and a 5px border with box-sizing: content-box. How wide is it on screen?
6. Which declaration centres a block element that has a fixed width?
7. If the root font size is 16px, what is 1.5rem?
8. What is the difference between display: none and visibility: hidden?
9. An element with position: absolute is positioned relative to what?
10. In a flex container with flex-direction: row, which property spaces items along the horizontal axis?
11. What does grid-template-columns: repeat(3, 1fr) create?
12. Which selector has the highest specificity?
13. Which pseudo-element needs the content property to appear?
14. Which media query applies only to screens 768px wide or wider?
15. How do you read a custom property named --brand?

How did you do?

ScoreWhat next
13 to 15Excellent. Start building a full responsive website of your own.
9 to 12Good work. Review the lessons for the questions you missed.
Under 9Go back through Layout and Selectors, try the examples again, then retake the quiz.
Sign in or create a free account to track progress, earn XP, badges and a certificate.