css-exam 0 votes, 0 avg 543 123456789101112131415 CSS Questions 1 / 15 1. When using position fixed, what will the element always be positioned relative to? A. the closest element with position:relative B. the viewport C. the parent element D. the wrapper element 2 / 15 2. Which variable defines the data type of the content in CSS? A. data_type B. content_type C. http_cookie D. http_user_agent 3 / 15 3. Which one of these is NOT an appropriate value for the font-variant property? A. small-caps B. large-caps C. default D. inherit 4 / 15 4. Which of the following property controls the horizontal overflow of a block or inline block? A. overflow-x B. overflow C. overflow-y D. overflow-k 5 / 15 5. 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; 6 / 15 6. 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 7 / 15 7. Which of the following will insert generated content in the counter? A. content B. counter-reset C. counter-increment D. counter() 8 / 15 8. If we don't want to allow a floating div to the left side of an element, which CSS property will we use? A. margin B. clear C. float D. padding 9 / 15 9. Which of the following is the correct syntax to display the hyperlinks without any underline? A. a {decoration : no-underline;} B. a {text-decoration : none;} C. a {text-decoration : underline;} D. a {text decoration : none;} 10 / 15 10. Which of the following CSS Property determines whether an animation should run in reverse on some cycles? A. animation B. animation-run C. animation-repeat D. none of the above 11 / 15 11. Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter? A. text-style : capital; B. transform : capitalize; C. text-transform : capital; D. text-transform : capitalize; 12 / 15 12. In the following media query example, what conditions are being targeted? @media(min-width:1024px),screen and (orientation: landscape){…..} A. The rule will apply to a device that has a width of 1024px or narrower and is a screen device in landscape mode. B. The rule will apply to a device that has a width of 1024px or wider and is a screen device in landscape mode. C. The rule will apply to a device that has width of 1024px or narrower. Or is a screen device in landscape mode. D. The rule will apply to a device that has either a width of 1024px or wider, or is a screen device in landscape mode. 13 / 15 13. Which Of The Following Selector Selects An Element That Has No Children? A. :nochild B. :empty C. :inheritance D. :no-child 14 / 15 14. Which statement about block and inline elements is true? A. By default, block elements are the same height and width as the content container between their tags; Inline elements span the entire width of its container. B. By default, block elements are span the entire width of its container; Inline elements are the same height and width as the content container between their tags; C. A nav tag element is an example of an inline element. Header tag is an example of a block element. D. A span tag is an example of a block element. Div tag is an example of an inline element. 15 / 15 15. The default value of "position" attrubute is? A. fixed B. absolute C. inherit D. static Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin