To use a custom property in your styles, you reference it with the ________ syntax.
- # symbol
- $ symbol
- & symbol
- @ symbol
To use a custom property in your styles in CSS, you reference it with the @ symbol. Custom properties, also known as CSS variables, are defined using the :root pseudo-class, and their values can be accessed and used in your styles by prefixing the custom property name with the @ symbol.
Loading...
Related Quiz
- The ::first-letter pseudo-element in CSS targets the ________ of a block-level element.
- A font's loading performance can be improved by ________.
- On a blog page, you want to emphasize the first line of every paragraph differently from the rest of the content. Which CSS property and pseudo-element will help you achieve this effect?
- What is the primary goal of the OOCSS (Object-Oriented CSS) methodology?
- You're creating a magazine-style layout with text flowing into multiple columns. As the viewport width increases, you want to add more columns while ensuring that each column does not exceed 250px in width. Which CSS properties would you adjust?