css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. 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 2 / 15 2. 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 3 / 15 3. Which of the following will insert generated content in the counter? A. content B. counter-reset C. counter-increment D. counter() 4 / 15 4. 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 5 / 15 5. CSS is written in which language? A. PHP B. HTML C. JAVA D. Python 6 / 15 6. 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 7 / 15 7. 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 8 / 15 8. 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-fill-mode D. animation-play-state 9 / 15 9. What is CSS? A. CSS is a style sheet language B. CSS is designed to separate the presentation and content, including layout, colors, and fonts C. CSS is the language used to style the HTML documents D. All of the mentioned 10 / 15 10. 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 11 / 15 11. 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 12 / 15 12. What changes the shadow from an outer shadow? A. initial B. inset C. inherit D. offset 13 / 15 13. From the choices given below, select the correct oredr to code css pseudo-classes. A. link,visited,hover,active B. hover,link,active,visited C. link,hover,visited,active D. link,hover,active,visited 14 / 15 14. Which of the following attributes is used to specify elements to bind style rules to? A. Id B. Class C. Tag D. all of the above 15 / 15 15. Which one is NOT the audio element’s attribute? A. check B. controls C. loop D. src Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin