Chapter quiz · CSS Fundamentals

Test what you learned.

8 questions on CSS Fundamentals. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

CSS Fundamentals — Chapter Quiz

Eight questions on selectors, cascade, specificity, box model.

0/ 8
  1. Question 1
    1

    Which selector has the HIGHEST specificity?

  2. Question 2
    2

    Two rules with the same specificity — the LATER one wins.

  3. Question 3
    3

    With box-sizing: border-box, width: 300px includes…

  4. Question 4
    4

    Which color wins for <p class="lead">?

    p { color: black; }
    .lead { color: gray; }
    p.lead { color: red; }
    
  5. Question 5
    5

    Which property is INHERITED by default?

  6. Question 6
    6

    For body text that scales with the user's browser font-size, use…

  7. Question 7
    7

    !important is the recommended way to override third-party CSS.

  8. Question 8
    8

    To match .card regardless of where it appears, the selector is .____.

Pick an answer — instant feedback as you go.