Help me with the W3C validator please.

Discussion in 'HTML & Website Design' started by PeterA, May 11, 2009.

  1. #1
    Hi,

    So I have a messy coded page, huh who doesn't...So any way I run for example this page through the checker.

    http://www.learn-how-to-weld.com/mig-welding.html

    Checker is here: http://validator.w3.org/

    And it spits out like 30 errors and 13 warnings. I want to fix this all up!

    So I see there is the option to clean up Markup with HTML Tidy tool. Once this has been cleaned up and assuming I will do this to every page. Is the output code reliable?

    I seem to think from memory it would make my navigation bar go to the bottom of the page instead of the left hand side.

    And I just checked now and it did it again.



    Can some one please give me some tips and help and maybe run the cleaned code and try it in their web editor please. I'd like to fix the messy code all up.

    Cheers,
    Peter
    Australia
     
    PeterA, May 11, 2009 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    You should correct the errors by hand - 30 errors should be very easy to fix. Most of the errors are simply links that use & instead of &.

    This is something you should learn to fix yourself. Do not pay someone else to do it, do not use an online 'code fixer' to do it.

    Learn valid HTML, and fix it yourself
    :)

    Your site is VERY close to valid, and you'll learn something by fixing it yourself, and seeing where the mistakes are. Get the HTML validator plugin for Firefox, it's a great tool for fixing your validation errors:
    http://users.skynet.be/mgueury/mozilla/

    Cleaning up code is easier than welding :p
     
    Kerosene, May 11, 2009 IP
  3. PeterA

    PeterA Guest

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    As much as I hate to aggree on not using a code checker, you are right.

    I will see how I go then let you know, Thanks.

    PEter
     
    PeterA, May 11, 2009 IP
  4. PeterA

    PeterA Guest

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is crazy

    Okay this part:
    <div class="main-table" align="center">

    Says

    line 28 column 3 - Warning: missing </div>

    Where is the </div> supposed to go then? at the end?

    Peter
     
    PeterA, May 11, 2009 IP
  5. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #5
    May be wrong on this but sometimes, isn't it the case that say on a page that appears to have a whole load of errors theres not literally that amount of errors?

    Like fixing one error can tidy up a huge portion of it and its sometimes a few errors throwing things out so it shows it to look a whole lot worse (error wise) than it is?
     
    pipes, May 19, 2009 IP
  6. kenlange

    kenlange Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    >>line 28 column 3 - Warning: missing </div>

    It is not that the </div> is in the wrong place, it means you are missing an </div>, which you still are. Currently, the following DIV is not closed out properly: <div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">

    Missing ending DIV's are often passable in Firefox, Safari, and Chrome, but can cause you serious problems with the layout in older version of IE.

    <style> tags go in the head section.

    Regards,
    ~Ken
     
    kenlange, May 19, 2009 IP
  7. blurredfringe

    blurredfringe Member

    Messages:
    77
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    48
    #7
    that's easy. since you are using HTML 4.01 as doc type, you must remove also self enclosing tags that causes errors. As said above, most other errors are due to & which should be converted to ampersand tag (&amp;)
     
    blurredfringe, May 19, 2009 IP