I'm having this code:
<ul>
<div>
</div>
</ul>
I feel no issue in my browser rendering it. I have read this too somewhere that li
should only be used as direct child of ul
.
Is this correct? Can't I use div
as a direct child of UL
? Is there any documentation for the above confusion?
Edit: This link says I can http://css-tricks.com/forums/discussion/11593/divs-inside-uls/p1
<li>
and let CSS handle how you want it; if it's not a list item, what is it doing in a list? Should it possibly come after or before the list? – Yare