:root

Term side of the Card
Topic: Pseudo Classes
Unit title: :root
Categories: Pseudo-class
Explanation side of the Card

Explanation: The pseudo-class that targets the highest-level parent of the document, typically the `<html>` element. It's often used to define global CSS variables that can be accessed throughout the entire stylesheet, making it easier to manage consistent design values.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: