+ 6
Pariket I think this one can clarify your doubts đ
https://stackoverflow.com/questions/61409490/what-is-the-benefit-of-using-root-css-selector-instead-of-html-css-selector
+ 4
The :root CSS pseudo-class matches the root element of a tree representing the document. In HTML, :root represents the <html> element and is identical to the selector html, except that its specificity is higher.
https://developer.mozilla.org/en-US/docs/Web/CSS/:root
+ 2
In using :root for color its just for defining variable for all childs.
You know, it's "almost" like pouring a can of paint on everything. Now I mean everything. Page elements But in this case, the elements are not painted and are not ranked, they are just ready to get painted
+ 1
You can use body to
No difference