CSS Pseudo-class :first-child

:first-child selects an element, if it is the first child of another element. For example, div:first-child selects all divs that are first children of other elements.

Examples

Compatibility

Chrome Firefox Internet Explorer Opera Safari
Any Any 9+ 9.5+ 3.1+




Comment