← Quiz: CSS Variables and Animations: all 10 questions
Quiz: CSS Variables and Animations · Question 1 of 10
How do you read a custom property called --brand?
How do you read a custom property called --brand?
- A.$brand
- B.var(brand)
- C.var(--brand)
- D.@brand
Answer & explanation
Correct answer: var(--brand)
Custom properties keep their two dashes and are read with var().
Can you get the rest right without peeking?
Take the timed Quiz: CSS Variables and Animations quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →