HTML and CSS Reference
In-Depth Information
Name
Descendant Selector
Pattern:
element1 element2
Description:
This allows the author to select an element based on its status as a descendant of another ele-
ment. The matched element can be a child, grandchild, great-grandchild, etc., of the ancestor
element. (CSS1 referred to these as “contextual selectors.”)
Examples:
body h1 {font-size: 200%;}
table tr td div ul li {color: purple;}
Search WWH ::




Custom Search