A short showing how CSS pseudo-classes such as :only-child and :first-of-type can style elements in place of modifier classes, beyond the commonly used :hover and :focus.
What you’ll learn
✓Style elements with :only-child and :first-of-type instead of modifier classes