Quiz: How well do you know CSS?
In the world of web development, CSS is often seen as a mystical language that is somehow both very easy and super complex at the same time. Almost everyone uses it on a daily basis, yet very few people can claim they really know what they are doing.
If you think you are a one of these true CSS masters, take the quiz and prove yourself. The questions will test your knowledge on various CSS properties, oddities, and common misconceptions.
CSS Quiz
When these elements are rendered, what will be the margin between them?
CSS Quiz
Which answer will transform the element from state A to state B?
CSS Quiz
Which selector will target only the last list item?
CSS Quiz
What will be the final background-color of this div?
CSS Quiz
What is the correct syntax for writing comments in CSS?
CSS Quiz
What's wrong with this :after pseudo-element?
CSS Quiz
Which of these CSS properties isn't real?
CSS Quiz
Which nth-child() selector will target only the last list item?
CSS Quiz
How can we center everything inside a container both vertically and horizontally?
CSS Quiz
Which of these answers contains invalid CSS?
CSS Quiz
What will be the font size of the h1 element in pixels?
CSS Quiz
Which combination of selectors will target only the uppercased element?
Great job!
.
Now make your friends jealous:
Answer
12 of 22
Bootstrap Studio
The revolutionary web design tool for creating responsive websites and apps.
Learn more
Comments 5
Yay! I got 12 out of 12.
Awesom article!! Congrats Danny!!!
What will be background size? :)
Answer of 3 Question is Red - the id selector has higher specificity. Such a good article thanks.
360 Webdesign UK
This was great! I'm still improving my javascript skills but have been trying to create a small quiz app. Is any of the code used to make this quiz open source?
Would be super grateful to take a look behind the scenes. This quiz is snazzy, fast, and works great on mobile.
thanks in advance!