css-exam 0 votes, 0 avg 560 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. What changes the shadow from an outer shadow? A. initial B. inset C. inherit D. offset 3 / 15 3. The __________ rule makes it possible to define different style rules for different media types in the same stylesheet. A. audio/video B. sink C. @media D. @canvas 4 / 15 4. Which of the following CSS3 property specifies the sequential navigation order for an element? A. nav B. class C. nav-index D. class-index 5 / 15 5. The CSS property that is equivalent to the align attribute is: A. text-align B. float C. text-align and float D. center 6 / 15 6. Which property specifies where the background image is positioned? A. background-image B. background-origin C. background-position D. background-clip 7 / 15 7. 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 8 / 15 8. Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use? A. System Color Names B. HSLa Color C. Commonly defined named colors D. Specificationdefined named colors 9 / 15 9. 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 10 / 15 10. Which one of these is NOT an appropriate value for the font-variant property? A. small-caps B. large-caps C. default D. inherit 11 / 15 11. What is the difference between display:none and visibillity:hidden? A. Both will hide the element on the page, but display:none has greater browser support, visibilty:hidden is a new property and does not have the best browser support. B. display:none hides the element but maintain the space it previously occupied. Visibility:hidden will hide the element from view and remove it from the normal flow of the document. C. display:none hides the element from view and removes it from the normal flow of the document. Visibility:hidden will hide the element but maintain the space it previously occupied. D. There is no difference, they both hide the elements on the page. 12 / 15 12. 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 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. 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. 15 / 15 15. CSS is written in which language? A. PHP B. HTML C. JAVA D. Python Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin