nezbo Posted September 9, 2008 Share Posted September 9, 2008 I know befor anyone says it. "Bad programming!" http://validator.w3.org/check?uri=http%3A%2F%2Fwww.darwenmtbclub.co.uk%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&st=1&user-agent=W3C_Validator%2F1.591 I have tryed to validate my site with w3 and i am geting far to many errors for my liking. Please can some one have a look and see if they can help me resolve any of them? Cheers, Nezbo Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/ Share on other sites More sharing options...
Minase Posted September 9, 2008 Share Posted September 9, 2008 no need to worry it will be a bitch to fix all of them Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637411 Share on other sites More sharing options...
JasonLewis Posted September 9, 2008 Share Posted September 9, 2008 Read them, and fix them. But not just that you need to "learn" why these errors occurred. It gives examples of what you are missing so you should be able to easily go through and just fix them up. Oh and this isn't the best section to post this. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637413 Share on other sites More sharing options...
lanmonkey Posted September 9, 2008 Share Posted September 9, 2008 only 34 errors!!!??!! You want to start worrying when you have over 1000! (which happens often) Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637425 Share on other sites More sharing options...
JasonLewis Posted September 9, 2008 Share Posted September 9, 2008 Often. Hmmm, maybe you need to learn what you are fixing so you don't get the errors again. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637435 Share on other sites More sharing options...
revraz Posted September 9, 2008 Share Posted September 9, 2008 W3 doesn't validate PHP, so this would be a HTML question. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637444 Share on other sites More sharing options...
PFMaBiSmAd Posted September 9, 2008 Share Posted September 9, 2008 Fixing the doctype problems will probably eliminate many of the other errors. You apparently don't have a valid doctype at the start of the page and there is at least one more doctype later in the page. Pages should have one valid doctype at the start of the page. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637455 Share on other sites More sharing options...
nezbo Posted September 9, 2008 Author Share Posted September 9, 2008 That is one of my major problems is that i have got a "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" Any ideas what is wrong with it? Fixing the doctype problems will probably eliminate many of the other errors. You apparently don't have a valid doctype at the start of the page and there is at least one more doctype later in the page. Pages should have one valid doctype at the start of the page. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637467 Share on other sites More sharing options...
PFMaBiSmAd Posted September 9, 2008 Share Posted September 9, 2008 It must go at the start of your page. You have javascript at the start of your page now. Javascript only goes in the head or the body of a page. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637492 Share on other sites More sharing options...
haku Posted September 9, 2008 Share Posted September 9, 2008 When fixing errors, it's best to always fix the first error, then re-validate. Often errors that are shown aren't actually errors, but because the validator is a script, it gets confused by code after finding the first error. Link to comment https://forums.phpfreaks.com/topic/123420-why-so-many-errors/#findComment-637987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.