css-exam 0 votes, 0 avg 571 123456789101112131415 CSS Questions 1 / 15 1. 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 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. What scales the background image as large as possible? A. contain B. cover C. wrap D. resize 4 / 15 4. Which one is NOT the audio element’s attribute? A. check B. controls C. loop D. src 5 / 15 5. Which of the following property controls the horizontal overflow of a block or inline block? A. overflow-x B. overflow C. overflow-y D. overflow-k 6 / 15 6. 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 7 / 15 7. CSS is written in which language? A. PHP B. HTML C. JAVA D. Python 8 / 15 8. 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 9 / 15 9. 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 10 / 15 10. 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 11 / 15 11. Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter? A. text-style : capital; B. transform : capitalize; C. text-transform : capital; D. text-transform : capitalize; 12 / 15 12. 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 13 / 15 13. 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; 14 / 15 14. Which statement regarding icon fonts is true? A. Icon fonts can be inserted only using JavaScript. B. Icon fonts can be styled with typography-related properties such as font-size and color. C. Icon fonts are inserted as inline images. D. Icon fonts require browser extension. 15 / 15 15. Which of the following is only for table elements? A. initial B. collapse C. hidden D. inherit Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin