> I have been trying to validate http://sesi-md.com/Temp/ without success. I am > using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> as my doctype and things > have worked fine in the past. I went ahead and added some JavaScript to the > page and now it will not validate because http://validator.w3.org is telling > me > that the less than sign in my "for" statement is not valid [ for (i = 0; i < > 10; i++) { ]. Also, I have to give an image a name so that I can address it, > and that is not validating either.
I'm not completely sure about this, but you might have to surround your script with: <script type="text/javascript"> <![CDATA[ ... script ... ]]> </script> To ensure that it's ignored by the validator. Also, I'm pretty sure that you can access an element by it's ID with getElementByID or something (I'm not very familiar with javascript). Ricky ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
