Which statement is true about CSS Variables?
- They are defined using the var keyword
- They are immutable and cannot be changed once set
- They are scoped to the element where they are declared
- They can only store numerical values
CSS Variables are defined using the -- prefix and the var function. They are scoped to the entire document and can store various types of values, including strings and numbers. They are mutable and can be changed dynamically.
Loading...
Related Quiz
- In what scenario might the !important rule be considered bad practice?
- In the context of web design, what does DPI stand for?
- In a box shadow declaration, what does the 'blur radius' value control?
- What is the main benefit of using CSS variables (custom properties) in a stylesheet?
- In the context of CSS best practices, what is the advantage of using shorthand properties?