Let's say my html looks like this:
<div class="container">
<... some html here ...>
</div>
I want to get the first direct child of .container
.
I could do .container > div:first-child
but that's assuming the it is a div
which is not always the case.
.container > :first-child
without thediv
portion.