WeCodeAcademy
❮ :active:last-child ❯

:first-child

Selects the first child of its parent.

Syntax

li:first-child { ... }

Example

Examplehtml
Open in editor »

← All of CSS Selectors