Why is the following code valid when I am using a <div> inside a <li>?
<div>
<li>
<ul> <li class="aschild"> <div class="nav">Test</div> </li> </ul>
Yes you can use a div inside a li and it will validate.
<!ELEMENT li %Flow;> <!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*"> <!ENTITY % block "p | %heading; | div | %lists; | %blocktext; | fieldset | table">
2.1m questions
2.1m answers
60 comments
57.0k users