View Full Version : validating website - div not allowed as a child in UL

08-09-2012, 06:37 PM
Please help, I get the following error when trying to validate my website:

Element div not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

is there a way around this?

here is my code:

<li><a class='fancybox title' href='#strategyinline_$j' title='$strategyicontext'><img src='$strategyhref' alt='' /></a></li>
<div id='strategyinline_$j' style='display:none;width:500px;'>

<img src='$strategyhref' alt='' />
<a href='javascript:$.fancybox.close();'>Close</a>

08-09-2012, 07:16 PM
is there a way around this?

Yes, put it inside the <li>.