div.card > div.name matches <div class='card'>....<div class='name'>xxx</div>...</div> but it doesn't match <div class='card'>....<div class='foo'> ... <div class='name'>xxx</div>..</div>....</div>
div.card div.name matches both.
That is, the > selector ensures that the selected item on the right side of > is a child of the item on the left side.
The syntax without > matches any <div class='name'> that is a descendant (and not just a child) of <div class='card'> .
RenΓ© Nyffenegger Apr 14 2018-10-14T00: 00Z
source share