selectorA selectorB {
    /* ... */
}
div p {
    background-color: yellowgreen;
}
div article {
    border: 1px dashed red;
}
<h2>CSS Descendant Combinator</h2>
<p>This is a p element.</p>
<div>
    <p>Selects all target descendant p elements of the preceding div element.</p>
    <p>Selects all target descendant p elements of the preceding div element.</p>
    <article>
        <h3>article</h3>
        <p>
            Also selects the descendant p element nested inside article,
            which is a grandchild of the preceding div element.
        </p>
    </article>
</div>
Rendered Output
li {
    list-style-type: disc;
}
li li {
    list-style-type: circle;
    color: red;
}
<ul>
    <li>
        <div>Item li</div>
        <ul>
            <li>Subitem li li</li>
            <li>Subitem li li</li>
        </ul>
    </li>
    <li>
        <div>Item li</div>
        <ul>
            <li>Subitem li li</li>
            <li>Subitem li li</li>
        </ul>
    </li>
</ul>
Rendered Output
selectorA > selectorB {
    /* ... */
}
div > p {
    background-color: yellowgreen;
}
article {
    border: 1px dashed red;
}
<h2>CSS Child Combinator</h2>
<p>This is a p element.</p>
<div>
    <p>Selects all target direct child p elements of the preceding div element.</p>
    <p>Selects all target direct child p elements of the preceding div element.</p>
    <article>
        <h3>article</h3>
        <p>The grandchild p element is not selected.</p>
    </article>
</div>
Rendered Output