As far as I know, this this is right:
<div>
<p>some words</p>
</div>
But this is wrong:
<p>
<div>some words</div>
</p>
The first one can pass the w3c validatorthe W3C validator (xhtmlXHTML 1.0), but the second can't. I I know that nobody will write code like the second one. I just want know why. And
And what about other tags' containment relationship?