Descendant Selector

Pattern:

element1 element2

Description:

Descendant selector allows to select an element based on its status as a descendant of another element. The matched element can be a child, grandchild, great-grandchild, etc. of the ancestor element.

Examples:


body h1 {font-size: 200%;} 
table tr td ul li {color: purple;}
Home 
  HTML CSS Book 
    CSS Reference  

Selector:
  1. Universal Selector
  2. Type Selector
  3. Descendant Selector
  4. Child Selector
  5. Adjacent Sibling Selector
  6. Class Selector
  7. ID Selector
  8. Simple Attribute Selector
  9. Exact Attribute Value Selector
  10. Partial Attribute Value Selector
  11. Hyphen-separated Attribute Value Selector
  12. !important
Related: