Xhtml Validation

Discussion in 'HTML & Website Design' started by theblurr5495, Dec 27, 2009.

  1. #1
    Hey, I was wondering if anyone can give me some input on this xhtml. I need to get my site working in IE8 and these errors might be the cause.

    Web Journey's XHTML Errors
     
    theblurr5495, Dec 27, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Why don't you simply fix the mistakes? The validator is very clear on what's the matter. You forgot to close an element; go back and close it. You closed an element a second time; go back and remove the redundant tag. You misspelled an attribute; go back and correct the spelling. Go down the list of errors and fix each in order. Re-validate occasionally. Fixing one error may correct an issue that caused other errors.

    If you get really stumped, we can help. Don't expect us to do the work for you.

    cheers,

    gary
     
    kk5st, Dec 27, 2009 IP
    Kerosene likes this.
  3. abhijit

    abhijit Notable Member

    Messages:
    4,094
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    215
    #3
    you can go for w3c validation..................... it will show you the code.............with out error................for which code you are validating....................
     
    abhijit, Dec 27, 2009 IP
  4. m7md_cis

    m7md_cis Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Use this DOCTYPE
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    Code (markup):
    Rather than DOCTYPE
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    Code (markup):
    Because "strict doctype" don't allow using some tages like:
    <font>, <center>,...
    _________________________________________________________________

    End tag for "h3" omitted.

    <div id="feature-box-column-right">
    <h2>Killer Resources</h2><h3>Themes, eBooks, And More
    </div>
    _________________________________________________________________

    ID "container" has been defined more than one time, it is error, ID there should be one time, if you need define properties more than one time use CLASS.
    _________________________________________________________________

    Best Regards,
    Mohammad
    www.ehome-jo.com
     
    m7md_cis, Dec 27, 2009 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Why ever would you recommend using deprecated (invalid) tags, and presumably invalid attributes, too?

    cheers,

    gary
     
    kk5st, Dec 28, 2009 IP
  6. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #6
    Ditto ^^

    Best to write strict, why would a client want second best?
     
    HuggyStudios, Dec 28, 2009 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thank the gods, those tags cause cancer and diabetes in old people. If you're using them, stop building websites.

    I'm almost proud of how my colleague managed to take a recent, table-less Drupal theme and not only add a layout table, but also have NESTED center tags.

    Yeah, nested center tags rock. W00! I guess those were to make the text inside... even MOAR centered?
     
    Stomme poes, Dec 28, 2009 IP
  8. combus

    combus Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah, you're using too archaic tags. Is way better to use CSS to style your page, rather than using inline styling of any sort of type.
     
    combus, Dec 28, 2009 IP
  9. stuart.letterman

    stuart.letterman Guest

    Messages:
    143
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Don't worry too much on Validation, Google's Matt Cutts has said on many occasions that if they ranked validated sites higher in the SERPs then it would be "a very slippery slope"!
     
    stuart.letterman, Dec 28, 2009 IP
  10. combus

    combus Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Is not exactly about SE or anything like that why you want a valid markup. It's due usability, accesibility and easier browser compatibility.
     
    combus, Dec 28, 2009 IP
  11. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It's true for now, they care more about content than valid code. Understandably. Still, those who worry about being valid and accessible usually at least are aware of what things they should and should not do for bots. No reason not to make your code as valid as possible along with any SEO stuff you're doing.
     
    Stomme poes, Dec 30, 2009 IP
  12. ATTRACTI

    ATTRACTI Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    To make it fully IE8 compatible add <meta http-equiv="X-UA-Compatible" content="IE=8" />
     
    ATTRACTI, Dec 30, 2009 IP
  13. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Nah, you don't need that. If your code is valid and looks great in FF, Opera, Safari, Chrome, Etc then it'll look great in IE8 as well... if you wrote your site for IE7 then you'll add that meta tag in to make IE8 act as buggy as IE7 so the bugs in the page look the same. But the problems will still be there for FF etc.

    The meta tag might be good for testing IE7 though if you don't have a copy of it.
     
    Stomme poes, Jan 1, 2010 IP