Menu Riverview Church

ONLY-OF-TYPE

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

It is the same as :first-of-type:last-of-type.

SYNTAX

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

EXAMPLES

INTERNAL

first-child

first-of-type

last-child

last-of-type

nth-child

nth-last-child

nth-last-of-type

nth-of-type

only-child

EXTERNAL

World Wide Web Consortium (W3C)