Child Selector
Pattern:
element1 > element2
Description:
This selector matches an element based on its status as a child of another element. Only a child will be matched.
Examples:
div > p {color: cyan;}
ul > li {font-weight: bold;}
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: