Problem Statement
Where should CSS variables be declared for global usage?
Explanation
Declaring variables inside `:root` makes them global, similar to defining them at the document level. Variables declared in other selectors are local to that scope.
Code Solution
SolutionRead Only
:root { --font-size: 16px; }Practice Sets
This question appears in the following practice sets:
