:first-child

The :first-child pseudo-class finds any element that is the first element in its parent.

Syntax



element:first-child {
  property: value;
}