h1:first-child

p1 p:first-of-type

p2

p3 p:last-of-type

h2:last-child

p1 p:first-child/p:first-of-type

p2

p3

p4 p:last-of-type

h2:last-child

h1:first-child

p1 p:first-of-type

p2

p3 p:last-of-type

h2:last-child