last-of-type (:last-of-type)

The :last-of-type CSS pseudo-class represents the last sibling of its type in the list of children of its parent element.

Example

<!DOCTYPE html>
<html>
    <head>
        <style>
            p em:last-of-type {
                color: lime;
            }
        </style>
    </head>
    <body>
        <p>
            <em>I'm not lime </em>
            <strong>I'm not lime </strong>
            <em>I'm lime </em>
            <strong>I'm also not lime </strong>
        </p>
    </body>
</html>