HTML and CSS Reference
In-Depth Information
Name
Child Selector
Pattern:
element1 > element2
Description:
This type of selector is used to match an element based on its status as a child of another ele-
ment. It is more restrictive than a descendant selector, as only a child will be matched.
Examples:
div > p {color: cyan;}
ul > li {font-weight: bold;}
Search WWH ::




Custom Search