Academic Curator
search
Developing CSS Exam
Time Left: 00:00

Developing Cascading Style Sheets Exam

Instruction: Select the correct answer for each of the 25 questions covering CSS foundations, creation, and validation.

1. What is the primary purpose of CSS in web development?




2. Which WCAG accessibility category ensures that every task is performable on both keyboard and mouse?




3. Which navigation type is most popular for mobile design because it occupies the least space until clicked?




4. Ensuring that a website is accessible from all different browsers and devices falls under which category?




5. Which UI element organizes and displays a list of options in a hierarchical manner?




6. (CSS Declaration) A CSS style rule is fundamentally made of which three parts?




7. (CSS Declaration) In the declaration color: red;, what is the term for "color"?




8. Which selector uses the asterisk (*) symbol to apply styles to all elements on a page?




9. What is the correct syntax for a Class Selector in a CSS file?




10. Which method of adding CSS takes the highest priority and overrides all other rules?




11. Which relative length unit is relative to the font-size of the root element?




12. Which keyword allows a property to take the value of the color property of the same element?




13. Which property controls the repetition of an image in the background?




14. Which HTML element is useful for screen-readers because it reads the text out loud when the user focuses on an input?




15. Which tag is used to group related elements and draw a box around them in a form?




16. How do you center-align a <div> element that is not 100% wide?




17. Which property sets the space between the margin and the first line of text?




18. What is the required order for link pseudo-classes to be effective?




19. Which table property ensures that borders between cells collapse into a single border?




20. Which positioning value keeps an element in the same place relative to the viewport even when the page is scrolled?




21. Which property is used for controlling the stacking order of positioned elements?




22. What feature is used to apply different style rules for different devices like mobiles and desktops?




23. What are the three ways a CSS validator typically allows you to check code?




24. Which CSS library makes sure that default styles are consistent across different browsers?




25. What are used to ensure that styles are rendered consistently across browsers, such as -webkit- or -moz-?