Skip to main content

Edit It: Apply DeepPink to the 'p' node that is its parent's third child

This code shows how to use the :nth-child() selector in CSS to apply DeepPink to a 'p' node that is its parent's third child.

See it on StackBlitz