How do CSS Variables enhance the maintainability of CSS code?
- They have no impact on maintainability
- They increase code complexity
- They only work with JavaScript
- They reduce redundancy in code
CSS Variables, also known as custom properties, help in reducing redundancy in code by allowing you to define values once and use them throughout the stylesheet. This enhances maintainability by making it easier to update styles globally.
Loading...
Related Quiz
- In a multi-column layout, which CSS property is used to control the gap between columns?
- In a flex container, setting flex-grow to a value of ________ will ensure the item grows to absorb any extra space.
- When using the "vertical-align" property, what does the value "baseline" represent?
- A team is developing a web application with a focus on mobile users but wants to ensure a good experience on desktops as well. What strategy should they adopt in their CSS approach?
- How can you target an element that is the only child of its parent using a pseudo-class?