jo: xhtml validator meckert bei 'ist kleiner als' zeichen

Beitrag lesen

hallo,

Meine Seite wird zwar als XHTML 1.0 transitional validiert, aber mit folgender meldung

Warning Line 18, column 16: character "<" is the first character of a delimiter but occurred as data .
for(var i=11; i <= subNavMax; i++)
This message may appear in several cases:

You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.

muß ich jetzt '&lt'  in JavaScript  verwenden, sähe nicht sehr schön aus im quellcode,

so sieht mein script aus

  
<script type="text/javascript">  
//SUB preloading  
var picPath="../../images/";  
var subNavMax = 13;  
for(var i=11; i <= subNavMax; i++)  
{  
mainNavOut[i]=new Image;  
mainNavOut[i].src=picPath+i+"_mainnav_out.gif";  
mainNavOver[i]=new Image;  
mainNavOver[i].src=picPath+i+"_mainnav_over.gif";  
}  
//SUB preloading  
</script>  

gruß

jo