last-of-type

The last-of-type CSS pseudo-class represents an element that is the last sibling of its type.

It is the same as :nth-last-of-type(1).

Syntax

selector:last-of-type
{
    property: value;
}

Examples

Internal

first-child

first-of-type

last-child

nth-child

nth-last-child

nth-last-of-type

nth-of-type

only-child

only-of-type

External

World Wide Web Consortium (W3C)

Home Menu