DevAcademy
PracticeCSSBeginner

CSS Beginner Practice

36 questions covering 12 CSS topics.

Quick Quiz

1. What does CSS stand for?

2. What are the two main parts of a CSS rule?

3. What does "cascading" refer to in CSS?

4. Which method loads CSS from a separate .css file?

5. Where is an internal stylesheet written?

6. Why are inline styles generally discouraged?

7. What separates a property from its value in a declaration?

8. What character ends a CSS declaration?

9. How are CSS comments written?

10. Which selector targets every element with class="card"?

11. Which selector targets the single element with a given id?

12. How do you apply the same styles to h1, h2, and h3 without repeating the rule?

13. Which value represents a fully transparent color in rgba()?

14. What does HSL stand for?

15. Which color format uses a six-digit code prefixed with #?

16. What is rem relative to?

17. What is em relative to?

18. What does 1vw represent?

19. What are the four layers of the box model, from inside out?

20. With the default box-sizing, does padding increase an element’s total rendered width?

21. What does box-sizing: border-box do?

22. Which property sets the boldness of text?

23. Why should font-family end with a generic fallback like sans-serif?

24. Which property controls spacing between lines of text?

25. Which value makes a background image fully cover its box, cropping if necessary?

26. Which property prevents a background image from tiling?

27. What is the benefit of setting a fallback background-color with an image?

28. Which shorthand sets width, style, and color in one declaration?

29. Which property rounds an element’s corners?

30. What border-radius value turns a square box into a circle?

31. Which property adds space inside an element’s border?

32. What does margin: 10px 20px; set?

33. What does margin: 0 auto; do to a block element with a set width?

34. What does display: none do to an element?

35. Which display value flows inline but accepts width and height?

36. What is the difference between display: none and visibility: hidden?