can we give <div> within <li>

Mubeen picture Mubeen · Jun 10, 2010 · Viewed 19.6k times · Source

can we give div tag within un order list tag.............. it will be in this format

<li><div>blablabla</div></li>

Is it Possible

Answer

animuson picture animuson · Jun 10, 2010

There are a lot of people that say a division inside a list item is incorrect, but according to the W3C validator it is perfectly fine. You'll never catch me putting divisions inside a list item though. Lists are too malformed to be putting additional block-level elements inside them.