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
HTML CSS Book
CSS Reference
Selector:
- Universal Selector
- Type Selector
- Descendant Selector
- Child Selector
- Adjacent Sibling Selector
- Class Selector
- ID Selector
- Simple Attribute Selector
- Exact Attribute Value Selector
- Partial Attribute Value Selector
- Hyphen-separated Attribute Value Selector
- !important
Related: