DevAcademy
PracticeCSSAdvanced

CSS Advanced Practice

27 questions covering 9 CSS topics.

Quick Quiz

1. What does a media query with (max-width: 480px) do?

2. What does "mobile-first" mean?

3. Why is the viewport meta tag important for responsive design?

4. How do you reference a CSS variable in a declaration?

5. Where are global CSS variables conventionally defined?

6. What is a key advantage of CSS variables over Sass variables?

7. Which property makes a CSS value change animate smoothly instead of instantly?

8. What does the timing-function part of a transition control?

9. Why are transform and opacity often preferred for animations?

10. What is the main difference between a transition and an animation?

11. Which at-rule defines the steps of a CSS animation?

12. Which media feature should wrap non-essential animations for accessibility?

13. Which transform function moves an element without affecting layout?

14. What does transform-origin control?

15. Why is transform preferred over animating top/width for movement?

16. Which value makes a box-shadow appear inside the element instead of outside?

17. Which property adds a shadow to text glyphs specifically?

18. Which property applies effects like blur() or grayscale() to an element?

19. Which function creates a gradient that radiates outward from a center point?

20. Which function sweeps colors around a center point like a color wheel?

21. How are gradients typically applied to an element?

22. What does calc() allow that plain CSS values do not?

23. What does clamp(min, preferred, max) do?

24. Which function is commonly used for fluid font sizes that scale with viewport width?

25. In BEM, what does the double underscore (__) represent?

26. Why is box-sizing: border-box commonly included in a CSS reset?

27. What matters most when choosing a CSS naming convention?