Skip to main content

Edit It: Apply DeepPink to the 3rd 'p' element type, 5th, 7th, and so on

This code shows how to use the :nth-of-type() selector in CSS to apply DeepPink to the 3rd 'p' element type, 5th, 7th, and so on.

See it on StackBlitz