Skip to content

CSS Quiz (50 Questions)

Answer all questions, track your progress live, and see your final result at the end.

Progress 0 / 50 answered
Q1. What does CSS stand for?
Q2. Which property changes text color?
Q3. Which property sets the background color?
Q4. What does the box model include?
Q5. Which display value creates a flex container?
Q6. Which property aligns flex items on the main axis?
Q7. Which property aligns flex items on the cross axis?
Q8. Which unit is relative to the root font size?
Q9. Which unit is relative to the parent font size?
Q10. Which property creates space inside an element?
Q11. Which property creates space outside an element?
Q12. Which selector targets an id?
Q13. Which selector targets a class?
Q14. Which pseudo-class styles hover state?
Q15. Which pseudo-class is best for keyboard focus styles?
Q16. What does position: absolute position relative to?
Q17. What does position: sticky do?
Q18. Which property controls stacking order?
Q19. Which layout is two-dimensional by default?
Q20. Which property defines grid columns?
Q21. What does gap control in Grid/Flex?
Q22. Which media feature is common for responsive design?
Q23. Which property truncates overflowing text with ellipsis?
Q24. Which property makes text bold?
Q25. Which value removes an element from accessibility tree visually but keeps layout?
Q26. Which property is animatable for transforms?
Q27. What does specificity help decide?
Q28. Which selector has higher specificity?
Q29. What does !important do?
Q30. Which property sets multiple backgrounds?
Q31. Which function creates a fluid size between limits?
Q32. What are CSS custom properties?
Q33. How do you read a CSS variable?
Q34. Which property controls object fitting in replaced elements?
Q35. Which display value hides an element and removes it from flow?
Q36. What does flex-wrap: wrap allow?
Q37. Which Grid value creates flexible tracks?
Q38. What is mobile-first CSS?
Q39. Which property softens edges of a box?
Q40. Which property adds shadow to a box?
Q41. What does overflow: auto do?
Q42. Which pseudo-element styles the first line?
Q43. Which property changes list marker style?
Q44. What does aspect-ratio control?
Q45. Which unit is 1% of viewport width?
Q46. What does container queries respond to?
Q47. Which property enables smooth scrolling?
Q48. What is the cascade?
Q49. Which property creates a stacking context commonly?
Q50. Best practice for responsive images?