Reputation: 357
I don't know which is a right way to write:
<ol><li>something</li><div>something</div><li>something</li></ol>
or
<ol><li>something<div>something</div></li><li>something</li></ol>
I have to add a div tag and a image tag between two lists. Well I am getting the output with both code above. But I wonder which is the correct one?
Upvotes: 1
Views: 414
Reputation: 943630
So the second one is correct and the first is simply invalid.
Upvotes: 2