CSS Tutorial menu

CSS Quiz

Check your CSS knowledge with these questions from the whole tutorial.

How the Quiz Works

  • Choose one answer for each question
  • You see the right answer and a short explanation straight away
  • If you get one wrong, go back to the chapter and try the examples again

Quiz Questions

Exercise

Which is the correct CSS syntax?

Exercise

How do you select an element with id="header"?

Exercise

Where is the best place for CSS on a real website with many pages?

Exercise

What does rgba(0, 0, 0, 0.5) give?

Exercise

Which part of the box model is between the content and the border?

Exercise

What does box-sizing: border-box change?

Exercise

Which display value hides an element and removes its space?

Exercise

In a flex container with flex-direction: row, which property centres items vertically?

Exercise

What does grid-template-columns: repeat(3, 1fr) create?

Exercise

Which media query applies only when the screen is 768px wide or wider?

What Next?

Well done on finishing the CSS tutorial. Now learn JavaScript to add interaction, or speed up your work with Tailwind CSS, Bootstrap and Sass.

Ready to build complete websites? Join the Workownix Web Development course, online or at our institute in Orangi Town, Karachi.

Learn CSS with a teacher

Join the Web Development course at Workownix, online or in Orangi Town, Karachi, and get a certificate.

See the course Ask on WhatsApp