CSS Questions March 14, 2023 | No Comments 0 votes, 0 avg 313 123456789101112131415 CSS Questions 1 / 15 1. When we write < img src="img.png" > , what “img.png” inside double quote implies? A. element B. attribute C. value D. operator 2 / 15 2. Which one can animate the width of search input when get focus? A. focus B. outline C. transition D. color 3 / 15 3. Which of the following selector selects the element that is the first child of its parent that is of its type? A. ::first-letter B. ::first-line C. :last-child D. :first-of-type 4 / 15 4. 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 5 / 15 5. 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 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. 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; 8 / 15 8. 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 –> 9 / 15 9. 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 10 / 15 10. Which of the following CSS Gradient Functions creates a circular, and optionally sets its shape, size, and position? A. radial-gradient() B. circular-gradient() C. elliptical-gradient() D. none of the above 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. Which property specifies where the background image is positioned? A. background-image B. background-origin C. background-position D. background-clip 13 / 15 13. 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 14 / 15 14. Which of the following is not a browser-specific versions of linear-gradient()? A. -moz-linear-gradient() B. -o-linear-gradient() C. -mac-linear-gradient() D. -webkit-linear-gradient() 15 / 15 15. Which Event Will Be Used When A Connection To The Server Is Opened. A. Onmessage B. Onopen C. Onerror D. none of the above Your score is The average score is 54% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Questions, Quiz