CSS Questions March 14, 2023 | No Comments 0 votes, 0 avg 543 123456789101112131415 CSS Questions 1 / 15 1. What changes the shadow from an outer shadow? A. initial B. inset C. inherit D. offset 2 / 15 2. What will be the output of the following CSS code snippet? span { border: 1px solid red; outline: green dotted thick; } A. All span elements will have a green thick border and a red outline B. All span elements will have a red border and a green dotted outline C. All span elements will have a outer green dotted border and an inner red border D. All span elements will have an outer red border and inner green dotted border 3 / 15 3. Which of the following property of a table element specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style? A. :border-collapse B. :border-spacing C. :caption-side D. :empty-cells 4 / 15 4. Which of the following selector matches the name of any element type? A. The Type Selector B. The Universal Selector C. The Descedant Selector D. The Class Selector 5 / 15 5. How do you comment in CSS file? A. //this is a coment// B. /* this is a comment */ C. //this is a comment D. <!– this is a comment –> 6 / 15 6. What is the difference between the margin and padding properties? A. Margin adds space around and inside of an element; Padding adds space only inside on an element. B. Margin adds space around an element; Padding adds space inside of an element. C. Margin adds a line around element; Padding adds space inside of an element. D. Margin adds space inside of an element; Padding adds space around an element. 7 / 15 7. Which of the following Viewport Property determines whether the display can be zoomed in and out? A. scale B. set-scale C. adjust-scale D. user-scalable 8 / 15 8. What is not a valid way of declaring a padding value of 10 pixels on the top and bottom, and 0 pixels on the left abd right? A. padding:10px 10px 0px 0px; B. padding:10px 0px ; C. padding:10px 0; D. padding:10px 0px 10px 0px; 9 / 15 9. What is the difference between display:none and visibillity:hidden? A. Both will hide the element on the page, but display:none has greater browser support, visibilty:hidden is a new property and does not have the best browser support. B. display:none hides the element but maintain the space it previously occupied. Visibility:hidden will hide the element from view and remove it from the normal flow of the document. C. display:none hides the element from view and removes it from the normal flow of the document. Visibility:hidden will hide the element but maintain the space it previously occupied. D. There is no difference, they both hide the elements on the page. 10 / 15 10. Which CSS property is used for controlling the layout? A. Header B. Footer C. Display D. Cascade 11 / 15 11. Which of the following is the Color Format that is the CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element? A. HSLa Color B. HSL Color C. RGBa Color D. RGB Color 12 / 15 12. Which of the following will insert generated content in the counter? A. content B. counter-reset C. counter-increment D. counter() 13 / 15 13. Which of the following properties will we use to display border around a cell without any content.? A. empty-cell B. blank-cell C. noncontent-cell D. void-cell 14 / 15 14. Which of the following property influences the horizontal alignment of an element, making it “float” toward the left or right margin of its containing element? A. float B. float-left C. float-right D. float-align 15 / 15 15. The __________ rule makes it possible to define different style rules for different media types in the same stylesheet. A. audio/video B. sink C. @media D. @canvas Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By WordPress Quiz plugin Questions, Quiz