Skip to main content

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

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

See it on StackBlitz