UX Lift logo

The Different Ways to Select <html> in CSS | CSS-Tricks

Explores CSS pseudo‑classes (:root, :scope, &, :has, :not), their scopes, specificity, practical uses, and quirky selector tricks—including a bird‑shaped selector.

More from CSS Tricks

© 2026. Made in Manchester by Matt Kevan.

Privacy

Cookies

Contact