first-child-
This will set CSS rule to every first element of selector which is someone’s child.
last-child-
This will set CSS rule to every last element of selector which is someone’s child.
first-of-type-
This will set CSS rule to every first selector type of element.
last-of-type-
This will set CSS rule to every last selector type of element.