Easy Tutorial
❮ Css3 Pr Flex Basis Css3 Pr Target ❯

CSS element>element Selector

Complete CSS Selector Reference

Example

Select all <p> elements where the parent is a <div> element:


Definition and Usage

The element>element selector is used to select elements with a specific parent.

Note: Elements that are not directly specified as a parent's child cannot be selected.


Browser Support

All major browsers support the element>element selector.

Note: The element>element selector works in IE8, but <!DOCTYPE> must be declared.

❮ Css3 Pr Flex Basis Css3 Pr Target ❯