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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *