Daniel Matthew

CSS Level 3 Selectors

As CSS evolves it brings with it more nuanced selectors to help us target elements in documents that increase in complexity.

Pseudo-classes

:root pseudo-class

:root represents an element that is at the root of the document. Typically, this will be the html element.

:nth-child pseudo-class

:nth-child

Sources

Daniel is a front-end developer at Talis, with an interest in accessibility, performance, and web components.