HTML and CSS Reference
In-Depth Information
Name
:last-of-type
Applies to:
Any element
Description:
Matches an element when it is the last child of its type of another element. Thus, div:last-
of-type will select any div that is the last child div of another element.
Examples:
td:last-of-type {border-right: 1px dotted;}
h2:last-of-type {color: fuchsia;}
Search WWH ::




Custom Search