Reply
html validator
Old 05-23-2006, 02:46 PM html validator
swiftmed's Avatar
Super Spam Talker

Posts: 906
Hi,

im just looking for advice on validating one of my pages. i just need to know why it picks up things like ";" etc in javascript, if you go to http://validator.w3.org/check?uri=ht...doctype=Inline


could someone please tell me why it picks up things like that, eg. ; , < , >
__________________
Kind Regards,
Andy MacDonald
SEO & Marketing Tips for Webmasters | Blogging Tips
swiftmed is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-23-2006, 06:54 PM Re: html validator
LadynRed's Avatar
Super Moderator

Posts: 6,567
Location: Tennessee
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club

Last edited by LadynRed : 05-23-2006 at 06:55 PM.
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-23-2006, 09:38 PM Re: html validator
ablaye's Avatar
Ultra Talker

Posts: 406
Location: WebmasterGround.com
Yes, it is complaining about the javascript.

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.
ablaye is offline
Reply With Quote
View Public Profile Visit ablaye's homepage!
 
Old 05-24-2006, 04:25 AM Re: html validator
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Quote:
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!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-24-2006, 05:20 AM Re: html validator
Experienced Talker

Posts: 33
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.
Maedi is offline
Reply With Quote
View Public Profile Visit Maedi's homepage!
 
Old 05-24-2006, 06:57 AM Re: html validator
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Quote:
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!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-24-2006, 07:27 AM Re: html validator
swiftmed's Avatar
Super Spam Talker

Posts: 906
Hi guys,

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.
__________________
Kind Regards,
Andy MacDonald
SEO & Marketing Tips for Webmasters | Blogging Tips
swiftmed is offline
Reply With Quote
View Public Profile
 
Old 05-24-2006, 02:28 PM Re: html validator
LadynRed's Avatar
Super Moderator

Posts: 6,567
Location: Tennessee
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to html validator
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14889 seconds with 12 queries