NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

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