Possible Duplicate:
Is putting a div inside an anchor ever correct?
When we write some kind of 'product list', you need only one link, but it should contain product image, product name, product title etc. can we use a contain p or some other tag? is there any cross browser issue?
I heard in html5, a tag can contain p tag, but still with no confidence about using it.
some code like so:
<ul class="xxx_list">
<li class="hproduct">
<a href="#" class="url" title="" target="_blank">
<img class="photo" src="shoujike.jpg" alt="手机壳">
<p>
<span class="price_wrap">¥<span class="price">88.00</span</span>
<span class="fav">收藏</span>
</p>
<p><a class="fn" href="">基本商品单元的商品名称</a></p>
</a>
</li>
</ul>
` within an `` - that's obviously not allowed.
– BoltClock Dec 17 '12 at 09:20`. Why not?... Looks like DHTMLX. see source: https://whatwg.org/. Do not put html block/table elements inside inline elements. Use `` because it is not kosher to put block inside inline elements and backward incompatible.
– 18C Dec 21 '17 at 04:22