What does :root do?
:root selects the document's root element (in HTML, that is html). It is often used to declare CSS variables so they are available to the whole document.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.