I have a HTML like this:
<a class="nhr" href="javascript:void(0)" onclick="" >
<p class="top_dr_profle">
<div class="my_doc_pic">
<img src="images/profile_img.png" />
</div>
<div class="my_doc_cont">
<p>Josh Dobstaff, MD</p>
<p>Hospitalist</p>
</div>
<div class="clear"></div>
</p>
<p class="primary">Make Primary</p>
</a>
Here you can see 3 <div/>s inside <p/> tag with class .top_dr_profle. But when I see it in firebug in mozilla the <div/>s are appearing outside of the <p/> tags. I have attached the screen shot too of firebug.

Use a validator.
<p> elements may not have <div> element child nodes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With