Descendant
Specifies a relationship between an ancestor selector element and a descendent element (child, grandchild, great-grandchild, etc).
A descendant combinator is white space that separates two simple selectors. A selector of the form "E F" matches element F when it is an arbitrary descendant of some ancestor element E.
Note: |
|---|
Descendant combinators were called contextual selectors in Cascading Style Sheets (CSS), Level 1 (CSS1). |
The Universal selector can be combined with the descendant combinator to skip over a generation of elements and pass styles to descendants beyond those of the child elements. For example, the following selector matches any P elements that are grandchildren or later descendants of a DIV element. (Note that the whitespace is the combinator, and not part of the universal selector.)
div * p {}
This selector is defined in Cascading Style Sheets (CSS), Level 2 (CSS2).
Note: