CSS Variables are often declared using the syntax --________: value; where ________ represents the variable name.
- variable-name
- var
- property
- variable
The correct option is variable. In CSS, variables are declared using the syntax --variable-name: value;, where 'variable' is used as the placeholder for the variable name. This feature allows for more maintainable and flexible stylesheets.
Loading...
Related Quiz
- With PostCSS, developers can write plugins to create custom ________ for their projects.
- A web page has a multi-column layout using floats, but the developer wants to switch to a single-column layout on devices with a width less than 600px. What approach should they take using media queries?
- Which CSS property specifies whether an animation should play in reverse on alternate cycles?
- In a scenario where an element should remain fixed at the top of the viewport upon scrolling, but only after the user scrolls past a certain point, which CSS positioning scheme would be most appropriate?
- How does the animation-fill-mode property affect the state of the animated element before and after the animation?