css-exam 0 votes, 0 avg 556 123456789101112131415 CSS Questions 1 / 15 1. 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 2 / 15 2. Which of the following will provide date pickers? A. jQuery UI B. Niceforms C. WebShim D. Bootstrap 3 / 15 3. What will be the output of following CSS code snippet? h1 {color: red text-decoration: underline; font-style: italic;} A. color: red, text-decoration: underline works B. only font-style: italic works C. color: red, text-decoration: underline and font-style: italic all works D. text-decoration: underline and font-style: italic works 4 / 15 4. 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 5 / 15 5. Which of the following CSS property specifies the look and design of an outline? A. outline-style B. outline-format C. outline-font D. none of the mentioned 6 / 15 6. Which of the following CSS Property defines which property values to apply to the element before the animation begins (if delayed) and after it ends? A. animation-play B. animation-delay C. animation-play-state D. animation-fill-mode 7 / 15 7. Which selector do we use to specify the rule for binding some particular unique element? A. Class B. id C. Tags D. both tags and class 8 / 15 8. Which of the following will insert generated content in the counter? A. content B. counter-reset C. counter-increment D. counter() 9 / 15 9. Which Of The Following Selector Selects An Element That Has No Children? A. :nochild B. :empty C. :inheritance D. :no-child 10 / 15 10. 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 11 / 15 11. 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 12 / 15 12. IF we want to wrap a block of text around an image, which css property will we use? A. wrap B. push C. float D. align 13 / 15 13. Choose the option that correctly specifies the output of the following CSS. span { border: 1px solid red; outline: green dotted thick; } A. All span elements will have a red border and a green dotted outline B. All span elements will have a green thick border and a red outline C. All span elements will have an outer red border and inner green dotted border D. All span elements will have a outer green dotted border and an inner red border 14 / 15 14. Which variable defines the data type of the content in CSS? A. data_type B. content_type C. http_cookie D. http_user_agent 15 / 15 15. Which of the following selector in CSS is used to select the elements that do not match the selectors? A. :not selector B. :empty selector C. :! Selector D. none of the above Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin