Question · HTML and CSS course · Module 11: Developer Tools
CSS Variables
How do you reference a CSS variable defined as --color-accent: #d4af37?
Answer options
- $color-accent
- var(--color-accent)
- @color-accent
- #{color-accent}
You can check the correct answer by solving this task in the CodeWorlds game.