Css - Mock Interview Test

1. What is the correct syntax to change the background color of a page in CSS?

2. How do you add a comment in CSS?

3. Which property is used to set the space between the content and the border in CSS?

4. What does the CSS "display: none" property do?

5. How do you center a block element in CSS?

6. What is the CSS property to control the font size?

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

8. Which property is used to set the space between elements in CSS?

9. What is the default value of the position property in CSS?

10. Which of the following is used to apply styles to an element when the user hovers over it?

11. What does the CSS 'z-index' property control?

12. Which of the following is the correct way to select all

elements in CSS?

13. What is the correct syntax to add an external CSS file in an HTML document?

14. What does the CSS 'float' property do?

15. What does the CSS 'position: absolute' property do?

16. Which CSS property is used to change the font family?

17. Which CSS property is used to set the opacity of an element?

18. What is the CSS property to control the line height?

19. What is the use of 'text-align: justify' in CSS?

20. Which property is used to control the border style in CSS?