In CSS selectors, sometimes @
is used, such as in @media
and @font-face
. What happens behind the scenes that makes the @
required?
1 Answer
These are what know as an at-rule, you can view the documentation here. This is because they aren't ruled sets where they just apply styles in the normal sense. It doesn't target 1 group of elements. It either has rule sets nested in them or input styles into the program such as @font-face
.
-
2