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




Custom Search