Skip to content

CSS Selectors

First Of Type

About

The :first-of-type pseudo-class matches the first element of its type among siblings.

First Of Type

The selector matches the first div and the first p element in the list.

  • Change the selector to only match the first paragraph, but not the first div