css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. 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. 2 / 15 2. 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 3 / 15 3. Which of the following selector selects all element of E that have the attribute attr that end with the given value? A. E[attr^=value] B. E[attr$=value] C. E[attr*=value] D. E[attr&=value] 4 / 15 4. Which of the following selector selects an element if it’s the only child of its parent? A. :nth-oftype(n) B. :only-child C. :root D. :single-child 5 / 15 5. What scales the background image as large as possible? A. contain B. cover C. wrap D. resize 6 / 15 6. What changes the shadow from an outer shadow? A. initial B. inset C. inherit D. offset 7 / 15 7. What is the use of Pseudo-classes In CSS? A. To Match A Specified Element B. To select the active links C. Are used to select all the visited links D. Are used to define a special state of an element 8 / 15 8. What type of CSS is generally recommended for designing large web pages? A. Inline B. Internal C. External D. none of the above 9 / 15 9. Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration? A. border-collapse B. border-width C. padding D. border 10 / 15 10. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content? A. background-scroll B. background-attach C. background-attachment D. background-allowance 11 / 15 11. Which variable defines the data type of the content in CSS? A. data_type B. content_type C. http_cookie D. http_user_agent 12 / 15 12. Identify the outline property that specifies the amount of area extended beyond the border box. A. outset3d B. inset C. outset D. inset3d 13 / 15 13. The default value of "position" attribute is___________ A. fixed B. absolute C. inherit D. relative 14 / 15 14. Which of the following CSS Gradient Functions sets the direction and colors of a gradient that fades from one color to the next in a straight line? A. gradient() B. line-gradient() C. linear-gradient() D. none of the above 15 / 15 15. Which of the following CSS3 property specifies the sequential navigation order for an element? A. nav B. class C. nav-index D. class-index Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin