Regarding CSS’s Global Scope

html {
font-family: Roboto, sans-serif;
With the except of some form elements, you’ve just set a font on every bit of text on a site! Nice! That’s probably what you were trying to do, because of the probably hundreds of elements all over your site, setting that font-family every time would be tedious and error-prone.
CSS is global by nature. On purpose!
I like how David Khourshid put it:
You ever stop and think about why CSS has a …
The post Regarding CSS’s Global Scope appeared first on CSS-Tricks.