Description

This pseudo-class matches the first child element of the specified element type, and is equivalent to :nth-of-type.

Example

This selector matches the first p element that’s a child of a div element:

div>p:first-of-type {
  ⋮ declarations
}

No Reader comments