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

:last-of-type {
    css declarations;
}
p:last-of-type {
   color: #3366ff;
   background: #ffff99;
}

Click the button below to experiment with this selector.

Give it a Try!

3.5Firefox 9.0Explorer 4.0Chrome 3.2Safari 9,6Opera