From W3C Wiki
< CSS‎ | Selectors

Pseudo-class :last-of-type

The :last-of-type pseudo-class represents an element that is the last sibling of its type in the list of children of its parent element. Same as :nth-last-of-type(1).


selector:last-of-type{ properties }


The following selector represents the last data cell td of a table row tr:


 tr > td:last-of-type{
   color: red;



CSS defines the :last-of-type pseudo-class selector in :last-of-type pseudo-class.