November 18, 2016 at 7:59 am
#248001
Participant
It means a direct child of. In your example p
would have to be a first-line descendant of div
and div
in it’s turns can only have body
as it’s immediate parent.
<body>
<div>
<p></p>
</div>
</body>
So this won’t do:
<body>
<header>
<div>
<p></p>
</div>
</header>
</body>
Because div
is not a direct child of body
but of header
instead. Then it would have to be:
body div > p
Meaning any descendant of body
that is a div
. With a direct child that is a p
element.