CSS Basics Quiz

Test your knowledge of CSS fundamentals

20:00
20 min quiz
Question 1 of 520% complete
What does CSS stand for?
1 points

About this CSS quiz

This beginner-level quiz has 5 questions covering basics, styling, selectors. You have 20 minutes, and you need 70% to pass. Every question comes with an explanation, so a wrong answer still teaches you something. Questions mix multiple choice, multiple answer and true/false formats.

Revise before you start

Answers and explanations

Show all 5 answers (spoilers)
  1. What does CSS stand for?

    Answer: Cascading Style Sheets

    CSS stands for Cascading Style Sheets, used to style HTML documents.

  2. Which CSS property is used to change text color?

    Answer: color

    The color property is used to set the color of text in CSS.

  3. How do you select an element with id "header" in CSS?

    Answer: #header

    The # symbol is used to select elements by their ID in CSS.

  4. Which of the following are valid CSS units?

    Answer: px, em, rem, %, vh, pt

    All of these are valid CSS units for different measurements.

  5. Which property is used to set the background color?

    Answer: background-color

    The background-color property sets the background color of an element.

Want more practice? Browse all web development quizzes or try the code yourself in the live playground.