Skills101
← All practice quizzes

Quiz: CSS Basics

5 questionsNo time limitPass: 60%+10 XP on first pass

Style web pages with CSS. Three ways to add CSS, selectors, colours and units, the box model with a picture, and specificity — why your CSS rule doesn't apply.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which selector targets all elements with class="btn"?

  2. Question 2

    Which space is INSIDE the border?

  3. Question 3

    Two rules: .title { color: red } and #main { color: blue } both match an element. Which colour wins?

  4. Question 4

    What does box-sizing: border-box do?

  5. Question 5

    Which unit is relative to the root font size?