Although I may receive many down votes, I am still curious to hear your opinions.
If you have ever encountered the following code:
<div>
<p>Paragraph1</p>
<p>Paragraph2</p>
</div>
<div>
</div>
literally speaking, one might expect div:first-child
to target <p>Paragraph1</p>
because it is the first child of the div
. However, in reality, it selects the very first div
element in the HTML. Wouldn't it be more logical to name this selector as :first
or perhaps :first-sibling
?