Hello everyone! I’ve just hit a roadblock and need a little help.
I’m on lesson 42 of Basic CSS which is ‘Inherit CSS variable’. The previous few lessons were also about CSS variables and I completed them but I didn’t really get a clear idea about what a CSS variable is. Is it the same as a ‘class’ or ‘ID’? Lesson 42 also mentions the ‘root’ element. I’ve looked around and found a few explanations but I’m having a hard time conceptualizing it. Won’t applying styles to the ‘root’ element be the same as applying them to the ‘body’ element?
If someone could explain these concepts may be through a metaphor or something easy to understand for a complete newbie, I’d really appreciate it. Thankyou