Introduction to CSS

This quiz tests your understanding of key concepts covered in our Introduction to CSS course. From differentiating between block-level and inline elements to applying and integrating CSS rules, each question will challenge your grasp of essential CSS skil

Question 1

Which selectors would you use to apply the same style to all <h1>, <h2>, and <h3> elements?

Question 2

How can you include multiple rules within a single CSS class?

Question 3

Which of the following is an example of a class selector in CSS?

Question 4

Which CSS method allows you to add styles directly within an HTML element?

Question 5

What is the primary difference between block-level and inline elements in HTML?

Question 6

In a CSS rule, which part specifies the style to be applied?

Question 7

Which CSS rule applies a red background to all elements with the class "button" and a font size of 16px to <p> tags?

Question 8

Which of the following is NOT a valid CSS selector?

Question 9

What is the correct syntax for an external CSS link in the HTML <head> section?

Question 10

What is the purpose of the universal selector in CSS?