css Quiz

1. Which CSS property is used to control the spacing between lines of text?

2. What does the CSS property box-sizing: border-box; do?

3. Which CSS selector targets all <p> elements that are direct children of a <div> element?

4. What is the purpose of the CSS z-index property?

5. Which CSS property is used to create rounded corners?

6. How do you make text bold using CSS?

7. Which CSS property is used to change the color of text?

8. What is the purpose of the CSS display: flex; property?

9. Which CSS property is used to add a shadow to an element?

10. What does the CSS property overflow: hidden; do?

11. Which CSS property is used to change the background color of an element?

12. How do you select all paragraph <p> elements in CSS?

13. Which CSS property is used to set the font size of text?

14. What does margin: 0 auto; do when applied to a block element?

15. Which CSS property is used to hide an element?

16. What does the CSS calc() function allow you to do?

17. Which CSS selector targets an element that is the *n*th child of its parent, regardless of its type?

18. What is the purpose of the CSS clip-path property?

19. Which CSS property is used to create a grid layout with implicit tracks?

20. What does the CSS property isolation: isolate; do?