CLOSE

First Child Pseudo-Selector

I should be red because I am the first child in the body.

I should not be red because I am the second child in the body.

I should be red because I am the first child of div.

Second child of div, thus not red.


CLOSE WINDOW | VIEW CODE