Pattern:
:first-of-type
Definition:
The :first-of-type pseudo-class matches the first child of its type in its parent element.
Examples:
Style the first <h1> element of its parent element
h1:first-of-type { color: hotpink; }
Pattern:
:first-of-type
Definition:
The :first-of-type pseudo-class matches the first child of its type in its parent element.
Examples:
Style the first <h1> element of its parent element
h1:first-of-type { color: hotpink; }
Please login to continue.