Passing W3.ORG Validation?

Discussion in 'HTML & Website Design' started by sitedesigner, Dec 3, 2007.

  1. #1
    sitedesigner, Dec 3, 2007 IP
  2. snigster

    snigster Peon

    Messages:
    88
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you look at the page you linked to? If you scroll down it lists all the errors on your page...
     
    snigster, Dec 3, 2007 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    For starters use xHTML 1.0 - not 1.1 or you have to save as .xhtml and that won't render in IE.
     
    blueparukia, Dec 3, 2007 IP
  4. sitedesigner

    sitedesigner Peon

    Messages:
    578
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yeah, but it is a .php page so how do I save it as .xhtml?

    I want to be validated, but with a .php page of course.

    Thanks,
    David
     
    sitedesigner, Dec 3, 2007 IP
  5. bochgoch

    bochgoch Peon

    Messages:
    1,918
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You don't that only counts for static pages.

    Sort out the MIME / DOCTYPE, something like:

    then your have several syntax errors:

    • a load of </p> with no opening <p>
    • you are closing divs </div> that haven't been opened

    then you should validate.
     
    bochgoch, Dec 3, 2007 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    What bochgoch recommended (xml prolog specifically) would bork your whole site in IE since it goes into quirks if theres anything but the DOCTYPE first (or whitespace I believe). Use what he said but get rid of the first line, and you'll have a good ol "XHTML" page (that is, it would be HTML since the content-type specifies what type of page it is regardless of the code inside, and it's almost always text/html since IE doesnt support real xhtml which is why I recommend using HTML 4.01 Strict).
     
    soulscratch, Dec 3, 2007 IP
  7. sitedesigner

    sitedesigner Peon

    Messages:
    578
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok, so what do i do about the top doc types and such? Im confused X_X
     
    sitedesigner, Dec 3, 2007 IP
  8. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Did you try creating a simple xhtml valid html page ever? It would really help you in the long run.
     
    paidhosting, Dec 3, 2007 IP
  9. sitedesigner

    sitedesigner Peon

    Messages:
    578
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    yes, i have created a valid xhtml site before.
     
    sitedesigner, Dec 3, 2007 IP
  10. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Remember if u post with tables and invalid xhtml code on the site it will become invalid, did u try making the same template into valid xhtml first before plugging it to wordpress ?

    I had hard time myself making wordpress xhtml but managed to make inner pages xhtml valid. Maybe u need to do the same ?


    Example would be : http://www.webdirectoryreviews.com/ loook at inner pages they are xhtml valid though.
     
    paidhosting, Dec 3, 2007 IP