CSS Basics Quiz
Test your knowledge of CSS fundamentals
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)
What does CSS stand for?
Answer: Cascading Style Sheets
CSS stands for Cascading Style Sheets, used to style HTML documents.
Which CSS property is used to change text color?
Answer: color
The color property is used to set the color of text in CSS.
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.
Which of the following are valid CSS units?
Answer: px, em, rem, %, vh, pt
All of these are valid CSS units for different measurements.
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.