Support » Fixing WordPress » Not XHTML Valid??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, the validator tells you what’s wrong, just start at the top and work your way down.
    But in short here’s what’s wrong:
    1) The meta tags are not closed. try ending them with a /> at the end.
    2) tags and their attributes should be lower cased.
    This means <TABLE> should really be <table>
    3) Remove any kind of layout controlling attributes. Align, width, height and the like. Use CSS to control all of that kind of stuff.
    4) When you do have attributes, use quotes around the value. height=”100px” for example.
    Clean up some of that stuff and revalidate between each change. Sometimes one bad thing at the top will cascade into more errors at the bottom.
    TG

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Not being valid is not a major problem. Most modern browsers correct for most “human errors” which can prevent validation, similar to talking in proper English vs slang. Validation simply tells you whether or not your site complies with the definition of XHTML. Therefore, for the sake of sanity, being valid is a good thing.

    if all your rss feeds are borked someone will tell you about it. if your site looks bad in firefox the crowd here will waste no time in informing you. so don’t sweat it. if your site looks ok and functions ok, a missing backslash is not the end of civilization as we know it.
    however, there are some people who think validation is the only important element of site design and hit the validation button on every blog they visit. they are a tiny group with too much time on their hands which should not be pandered to.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not XHTML Valid??’ is closed to new replies.