> selector

Back to the index.

Selects an element that is the child of another element.


body > p {color: #CB000F;}

The > selector means "child of", so that this style sheet should make all P's that are direct children of BODY red.

It should not make this paragraph red. It’s in a div, and is therefore not a direct child of the body.