So i have this code:
<p id="item_1">
<div class="background displayInline deleteItemFromCart" title="Delete item"></div>
some text
</p>
Simple right? now what would happen if i would view the source in Chrome
dev tools:
And as you can see for some reason <p>
doesn't contain anything any more.
If i would try to remove div text would be back in <p>
tag again, so my best guess would be that <p>
can't contain any or just div elements?
EDIT Well it was stupid question, anyways now that i think about it i could have just used <ul>
instead of <p>
if i was going to build a list of things... Anyways thank you all for your help.