700+ html errors...

Discussion in 'HTML & Website Design' started by MoeAlza, Feb 15, 2008.

  1. #1
    MoeAlza, Feb 15, 2008 IP
  2. rajatagarwal

    rajatagarwal Peon

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First start from point#1 and then keep correcting one by one all. And, then you will have a validated HTML.
     
    rajatagarwal, Feb 15, 2008 IP
  3. MoeAlza

    MoeAlza Peon

    Messages:
    304
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    MoeAlza, Feb 15, 2008 IP
  4. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I can make it validate, for a small payment.

    Lol, XHTML but you are using tables. :s
     
    Dondon2d, Feb 15, 2008 IP
  5. Pandemix

    Pandemix Well-Known Member

    Messages:
    954
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #5
    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.
     
    Pandemix, Feb 15, 2008 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    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
     
    kk5st, Feb 15, 2008 IP
    deakster likes this.
  7. MoeAlza

    MoeAlza Peon

    Messages:
    304
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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.
     
    MoeAlza, Feb 16, 2008 IP
  8. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It's because you used tags or attributes that are for XHTML.
     
    Dondon2d, Feb 16, 2008 IP
  9. MoeAlza

    MoeAlza Peon

    Messages:
    304
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    what do they look like?
     
    MoeAlza, Feb 16, 2008 IP
  10. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #10
    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?
     
    nicangeli, Feb 16, 2008 IP
  11. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #11
    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
     
    kk5st, Feb 16, 2008 IP
  12. MoeAlza

    MoeAlza Peon

    Messages:
    304
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    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 :).
     
    MoeAlza, Feb 16, 2008 IP
  13. mds

    mds Active Member

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #13
    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.
     
    mds, Feb 16, 2008 IP
  14. Cri2T

    Cri2T Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #14
    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.
     
    Cri2T, Feb 16, 2008 IP
  15. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #15
    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
     
    Jalpari, Feb 18, 2008 IP
  16. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #16
    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.
     
    Stomme poes, Feb 18, 2008 IP