:nth-last-child() Selector

Selects all elements that are the nth-child of their parent, counting from the last element to the first.

:nth-of-type() Selector

Selects all elements that are the nth child of their parent in relation to siblings with the same element name.