🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.$brand
  2. B.var(brand)
  3. C.var(--brand)
  4. 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 →