Suggest an editImprove this articleRefine the answer for “What does :root do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**`:root`** is a CSS pseudo-class that selects the document's root element (in HTML, `html`). **Key point:** it is often used to declare CSS variables so they are available to the whole document.Shown above the full answer for quick recall.Answer (EN)Image`: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.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.