CSS Set-2

Instruction:-

  • Number of Questions : 25
  • Total Marks : 25
  • Each question carry 1 Marks.
  • No negative marking

  •  

    Results

    #1. How do you center a block element horizontally in CSS?

    #2. What is the correct syntax to select all elements of type “div” in CSS?

    #3. Which CSS property is used to specify the space between lines of text?

    #4. Which of the following CSS properties is used to control the visibility of an element?

    #5. What does the “overflow” property do in CSS?

    #6. Which CSS property controls the width of an element’s border?

    #7. Which of the following CSS properties can be used to change the background of an element?

    #8. How do you apply a CSS rule only on devices with a screen width of 600px or smaller?

    #9. Which of the following units is relative to the parent element’s font size in CSS?

    #10. How do you add a comment in CSS?

    #11. Which property is used to define the space between the content and its border?

    #12. What is the effect of the CSS property display: flex; on an element?

    #13. Which of the following is the correct way to specify a font in CSS?

    #14. How do you hide an element in CSS without removing it from the document flow?

    #15. Which CSS property is used to set the height of an element?

    #16. What is the “box model” in CSS?

    #17. How do you apply multiple CSS styles to the same element?

    #18. What is the effect of the opacity property in CSS?

    #19. How do you create a CSS animation that changes the background color from red to blue over 2 seconds?

    #20. Which of the following is the correct way to link an external CSS file to an HTML document?

    #21. How do you apply a CSS rule to an element with the class “menu”?

    #22. Which CSS property is used to change the font size of an element?

    #23. What is CSS?

    #24. What does the CSS background-color property do?

    #25. Which of the following is the correct CSS rule for hiding an element?

    Previous
    Finish

    Leave a Comment

    Your email address will not be published. Required fields are marked *