Top CSS Questions & Practice
Master 50+ essential CSS questions ranging from core fundamentals to advanced layout, browser behavior, accessibility, performance, and real-world scenarios.
Junior Fundamentals — Question 1
Test your understanding of the CSS box model.
Which four areas make up the CSS box model?
Junior Fundamentals — Question 2
Test your understanding of box sizing.
What does `box-sizing: border-box` do?
Junior Fundamentals — Question 3
Test your knowledge of selectors.
Which selector targets an element with class `button`?
Junior Fundamentals — Question 4
Test basic CSS inheritance.
Which property normally inherits from a parent?
Junior Fundamentals — Question 5
Test pseudo-class knowledge.
Which selector targets an element while the pointer is over it?
Junior Fundamentals — Question 6
Test pseudo-element knowledge.
Which is a pseudo-element?
Junior Fundamentals — Question 7
Test display behavior.
What happens when an element has `display: none`?
Junior Fundamentals — Question 8
Test units.
What does `rem` normally reference?
Junior Fundamentals — Question 9
Test color syntax.
Which is valid modern CSS RGB syntax with alpha?
Junior Fundamentals — Question 10
Test cascade fundamentals.
When two declarations have equal specificity, which normally wins?