Hello, I'm struggling to get some javascript validated with the w3 validator. It gives me this error: for (i=1; i <=3; i++) This message may appear in several cases: * You tried to include the "<" character in your page: you should escape it as "<" * You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe. * Another possibility is that you forgot to close quotes in a previous tag. any ideas on how to overcome this? This is the only error it is displaying.
put your JS into cdata section if you use xhtml: <script type="text/javascript"> /* <![CDATA[ */ // content of your Javascript goes here /* ]]> */ </script> Code (markup):