Using http://validator.w3.org I had over 700 errors for my site www.ArcadeToad.com . I have no idea what to do now. Can someone please tell me where to start?
First start from point#1 and then keep correcting one by one all. And, then you will have a validated HTML.
i have not idea how to fix these errors. can you explain what i need to do to correct the first error and il see if i can take it form their.
What your site really needs is a good recoding IMO. Tables are such a mess to work with, and it will just be really hard to make xHTML.
Just take it a step at a time. First, change the doctype to html 4.01 transitional. You didn't use xhtml syntax; using the appropriate DTD will get rid of about 500 errors right off the bat. Then correct each error as you come to it. For instance, "Error Line 13, Column 75: there is no attribute 'BACKGROUND'", means just what it says. The background attribute is good only on the body element. If you want a background image on any other element, use css. The you have, "Line 13, Column 104: document type does not allow element 'TABLE' here." Well, you haven't closed the head element or opened the body element. The table element is not allowed in the head. If you don't understand what they mean, like the first above, check the rules, http://www.w3.org/TR/html4/ If you don't understand the why of the second above, check the element's parent to see what may be nested in it. And, so on. cheers, gary
i removed the <html xmlns="http://www.w3.org/1999/xhtml"> and replaced the doctype to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> now i have 224 errors.
Well that was the first thing you did wrong, you should have replaced that with <html> and had the doctype above that, so you would have, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> Code (markup): You should then bring all of the elements that belong inside the header to the top of the document, (i.e. you cannot have a <table> inside the <head>, then you should have code that looks like, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="http://www.ArcadeToad.com/templates/v3/style.css" type="text/css"> <title>Arcade Toad - Welcome to Arcade Toad</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> </head> Code (markup): There you go, now just 222 more errors to fix... btw, that code it horrible, what did you use to generate it?
function [color=red]MM_[/color]jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; Code (markup): Spells MacroMedia, thus Dreamweaver, to me. cheers, gary
its a pre-made arcade script. i did a search on other sites that use this script and they also have hundreds of errors. don't blame me for the coding .
I think its better to start re-coding the script even if its not originally yours. 1.START WITH THE RIGHT DOCTYPE 2.MAKE SURE YOU CONFORM THE CODES TO THE RIGHT DEFINITION 3.LOOK FOR TINY CODING ERRORS . SOMETIMES THEY CAUSE SERIOUS PROBLEMS WITH VALIDATION 4. MAKE SURE YOUR TAGS ARE PROPERLY NESTED 5. USING A LOT OF JAVASCRIPT CAN CAUSE VALIDATION PROBLEMS 6. REMOVE UN-NECESSARY TAGS.
I guarantee you will not have to fix 700 errors. You might be upwards of 100 errors that need fixed, but most of them will be recurring from one actual error. Or, a bad bit of xHTML in a PHP while loop. "Absolutely not." is what should come to mind when you hear the word "table", "tr", "td" etc. Like many other's have said, your site is in for a good re-coding.
if u have basic html experience then u can do it there is also written whats ur mistake and on which line it is then why u will pay
Referring to XHTML tags: on some tags, with XHTML, you see this: <img src="blah" alt="" /> instead of <img src="blah" alt=""> The last one is correct for HTML4. The above is for XHTML. Setting your doctype for HTML will mean that the validator will assume there should be HTML tag endings and will count the others as errors.