:first-child (CSS1)

The :first-child CSS pseudo-class represents any element that is the first child element of its parent.

Syntax

:first-child { declaration block }

Examples having uses of: ':first-child'

0 votes
1k views

CSS Pseudo

CSS pseudo-classes are used to add special effects to some selectors.