CSS :nth last of type() Selector
CSS :nth-last-of-type() Selector
The :nth-last-of-type(n) selector is used to match every element that is the nth child of a particular type of its parent starting from the last child. We can say that n can be a number, a keyword, or a formula.
Its syntax is:-