🎙 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 2 of 10

What does color: var(--accent, orange); do if --accent is not defined?

What does color: var(--accent, orange); do if --accent is not defined?

  1. A.The rule is ignored completely
  2. B.It uses orange as the fallback
  3. C.It uses black
  4. D.It throws an error in the console
Answer & explanation

Correct answer: It uses orange as the fallback

The second argument to var() is a fallback value.

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 →