What it's actually complaining about is something else that's wrong in your code or it just doesn't like the js. Javascript in an XHTML page should be wrapped in [CDATA], the validator doesn't like javascript notation.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
By the way, you don't really need to validate your HTML. Just check it in different web browsers and if the page looks good, that's good enough.
I disagree. Code should always be valid where possible - it's not just IE, Firefox and Oprea that are visiting your pages, ya know. If HTML were a compiled language, you wouldn't have a web page at all if your code was invalid.
__________________ Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Everyone's entitled to their own opinion. Valid code is nice, but to fix errors in invalid browsers (cough..IE), I find its best to fight fire with fire.
Everyone's entitled to their own opinion. Valid code is nice, but to fix errors in invalid browsers (cough..IE), I find its best to fight fire with fire.
I know what you mean, Firefox (so-called 'standards compliant' browser) has a massive bug with nested lists. You have to use invalid code to get it to work. But that doesn't mean to say you have to dish out the same code to every browser... I detect if the user is using Firefox, and if they are, I issue the hack. If you can't do this, then the odd hack probably won't hurt - but code should be as valid as possible. Yes, everyone is entitled to their own oppinion and has a choice if they use valid code or not, I'm just giving advice on the benifits of valid code.
__________________ Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
thanks for all your opinions, i agree with minaki, i think that all code should be valid, if it wasnt relatively important things like the w3c standards and stuff wouldmt exist.
Me 3, validation IS important. A few warnings are not the end of the world but invalid code can really mess with your results in ways you don't want it to. Validation can catch the serious errors so you can clean things up and have a page that loads correctly and displays your content properly. You shouldn't dismiss it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!