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; }
Designed by : w10schools
service@w10schools.com
Our Partners: aeeble – Providing content publishing and search solutions
Please login to continue.