css-exam 0 votes, 0 avg 547 123456789101112131415 CSS Questions 1 / 15 1. The CSS property that is equivalent to the align attribute is: A. text-align B. float C. text-align and float D. center 2 / 15 2. What scales the background image as large as possible? A. contain B. cover C. wrap D. resize 3 / 15 3. In the example below, when will the color pink be applied to the anchor element? a:active{ color:pink; } A. The color of the link will be display as pink while the link is being clicked but before the mouse click is released. B. The color of the link will display as pink before it has been clicked. C. The color of the link will display as pink after its been clicked or if the mouse is hovering over the link. D. The color of the link will display as pink on mouse hover. 4 / 15 4. Identify the outline property that specifies the amount of area extended beyond the border box. A. outset3d B. inset C. outset D. inset3d 5 / 15 5. 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 6 / 15 6. Which of the following Media Query describe the ratio of the device width to the device height of the media? A. device-aspect B. device-aspect-ratio C. device-aspect-query D. none of the above 7 / 15 7. When using flexbox, the 'justify-content' property can be used to distribute the space between the flex items along the main axis. Which value should be used to evenly distribute the flex items within the container shown below. A. justify-content:center; B. justify-content:space-around; C. justify-content:auto; D. justify-content:space-between; 8 / 15 8. What is the role of pseudo-class in CSS A. Match a specified element B. Select the active links C. are used to select all the visited links D. are used to define a special state of an element 9 / 15 9. What is the difference between the margin and padding properties? A. Margin adds space around and inside of an element; Padding adds space only inside on an element. B. Margin adds space around an element; Padding adds space inside of an element. C. Margin adds a line around element; Padding adds space inside of an element. D. Margin adds space inside of an element; Padding adds space around an element. 10 / 15 10. Which of the following is only for table elements? A. initial B. collapse C. hidden D. inherit 11 / 15 11. 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 12 / 15 12. Which of the following is used for spread radius? A. blur B. spread C. color D. v-offset 13 / 15 13. 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 14 / 15 14. The CSS property used to set the distance between the borders of the adjacent cells in the table is__________ A. border-collapse B. cell-collapse C. cell-spacing D. border-spacing 15 / 15 15. Which of the following CSS property defines how an image or video fits into container with established height and width? A. object-fit B. object-contain C. object-cover D. position:fixed Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin