:nth-child(n) vs :nth-of-type

paragraph one

paragraph two

paragraph three

Heading 1

paragraph one

paragraph two

paragraph three

Heading 1

Heading 2

paragraph one

paragraph two

paragraph three