Part 2: Pseudo-Classes
Learn about CSS pseudo-class selectors.
Structural and relational pseudo-class selectors
This lesson focuses on structural and relational pseudo-class selectors.
Structural pseudo-class selectors
Structural pseudo-class selectors select additional information from the
The :root
selector selects the highest element in a document. This is almost guaranteed to be the <html>
element, unless we’re using a different markup language, such as SVG or XML.