Need help validating webpage

Discussion in 'Search Engine Optimization' started by dubs89, Sep 12, 2008.

  1. #1
    I went to the W3C Validator and i got about 40 errors... Here are a couple that are copnfusing me any help would be greatly appreciated.

    My webpage is http://www.thedigitaloffering.com


    -Line 5, Column 7: element "CENTER" undefined.
    <center>
    You have used the element named above in your document, but the document type you are using does not define an element of that name.

    -Line 26, Column 3: start tag for "TR" omitted, but its declaration does not permit this.
    <td>

    -Line 61, Column 32: there is no attribute "BACKGROUND".
    <table width="862px" background="p7exp/images/downbar.png">
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    ine 63, Column 10: there is no attribute "WIDTH".
    <td width=10%>

    These are just a few it seems to be full of error... Im not even sure if my doctype is correct... Please help me out on this.
     
    dubs89, Sep 12, 2008 IP
  2. Vic_mackey

    Vic_mackey Banned

    Messages:
    2,093
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Since you've posted this in the seo forum, I assume you are worried its having a negative impact on your serps. It's not.
     
    Vic_mackey, Sep 12, 2008 IP
  3. vansterdam

    vansterdam Notable Member

    Messages:
    3,145
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    245
    #3
    It sounds like you need to change the first line of code in your website: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    I'm not sure what you should replace it with to get rid of some of those errors.

    The second error can be fixed by adding a <tr> before the <td> here:
    <table width=760 BORDER=0 CELLSPACING=0 CELLPADDING=0>
    <td>

    For the <center> problem, you seem to have a <center> tag in your header which is of no use.

    As Vic_mackey stated, it shouldn't have a negative impact on your rankings. I prefer to deal with any validation errors just to be on the safe side.

    You should just make sure that google can properly crawl and index all of your pages. A serious validation error could cause problems for search engine spiders, but the problems you mentioned sound rather unimportant.
     
    vansterdam, Sep 12, 2008 IP
  4. vansterdam

    vansterdam Notable Member

    Messages:
    3,145
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    245
    #4
    Also for the width error you can use css to set the width instead of the html width attribute.
     
    vansterdam, Sep 12, 2008 IP