JSBIN
HTML
<p>
<div>123</div>
</p>
CSS
p div{
background:#f00;
}
Encountering an odd issue here. When I input the HTML structure as shown below:
<p></p><div>123</div>
The CSS code fails to produce the desired effect. You can see it for yourself on JSBIN. I'm curious to understand why this behavior occurs and if there are other similar tags with the same inconsistency. Thank you.