Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 904
Trades: 3
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. ; , < , >
swiftmed is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-23-2006, 06:54 PM Re: html validator
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


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: 437
Location: WebmasterGround.com
Trades: 5
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.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
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
Trades: 0
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!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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
Trades: 0
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
Trades: 0
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!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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: 904
Trades: 3
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.
swiftmed is offline
Reply With Quote
View Public Profile
 
Old 05-24-2006, 02:28 PM Re: html validator
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to html validator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.26492 seconds with 12 queries