Skip to main content

Edit It: Apply DeepPink to the 'p' nodes that are one of the first three children of their parent

This code shows how to use the :nth-child() selector in CSS to apply DeepPink to the 'p' nodes that are one of the first three children of their parent.

See it on StackBlitz