What is the difference between p:nth-child(2) and p:nth-of-type(2)?
As per W3Schools CSS Selector Reference:
p:nth-chil
p:nth-child(2){background:#f00;}
p:nth-of-type(2){background:#0f0;}
first child
second child and first element of class "p"
third child and second element of class "p"
fourth child and third element of class "p"