WordPress.org

Ready to get started?Download WordPress

Forums

Help validating with WC3... 31 errors! (15 posts)

  1. inomaly
    Member
    Posted 8 years ago #

    Wow! 31 Errors! I'm sure most of these are relatively simple to fix, but damned if I know where to start.

    http://validator.w3.org/check?uri=www.inomaly.com

    I understand the error messages about tags not being closed and whatnot, but can anyone offer me any advise here? I'd very much appreciate it

  2. moshu
    Member
    Posted 8 years ago #

    I'd start by going back to the validator and check the "Show source" box then revalidate.
    In this way you'll see exactly the location of the errors and will be easy to find them in your code.

  3. McShelby
    Member
    Posted 8 years ago #

    Hey, you told the validator in the very first line of your HTML, that it's XHTML. In this case it's not <br> but
    This applies to tags, that don't have closing ones, like p img ...

  4. inomaly
    Member
    Posted 8 years ago #

    Here's the revalidation with source:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.inomaly.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1

    McShelby - I kinda understand what you're saying, but what's the fix for that? Just take the X out of XHTML?

  5. vkaryl
    Member
    Posted 8 years ago #

    No, add a forward slash to the br tags, like this:

    <br />

  6. inomaly
    Member
    Posted 8 years ago #

    Thanks guys, that took me from 32 down to 17... still far from finished but that's awesome! Any other suggestions, feel free to lay them on me.

  7. Beel
    Member
    Posted 8 years ago #

  8. vkaryl
    Member
    Posted 8 years ago #

    Hey, inomaly, just so you don't feel so bad....

    When I first got back into css after 4 years pretty much "away" when I went back to work full time, the first site I redid (one of my own, thankfully!) came up with 276 errors.... I still have the page printout to remind me how far I've come since!

  9. McShelby
    Member
    Posted 8 years ago #

    vkaryl: The br tag is what I also wrote in my reply but for some reason this comment system interpreted the br as linebreak instead of writing the tag into my reply. I may have had to encapsulate it with a pre tag?

    inomaly: You should not use the center tag anymore. Use CSS instead. The rest of the validation problems you have are pretty well explained by the Validator output. Just take some time and _read_ the error messages. You may also consult a XHTML reference like http://en.selfhtml.org/ Sorrowly the english translation isn't finished at all, but there are translations in german, spanish, japanese and french - if this helps...

  10. rie
    Member
    Posted 8 years ago #

    Also,
    XHTML requires a tag that has no closing element, to be closed.
    Huh?
    with an 'img' tag, you need to 'close' the tag with />
    example:
    <img src='blah.jpg' alt='pic of blah' />

  11. moshu
    Member
    Posted 8 years ago #

    @McShelby,
    I may have had to encapsulate it with a pre tag?
    Nope. Just read the instructins below the text input area: "Put code in between backticks" - usually it's on the same key as the tilde ~

  12. McShelby
    Member
    Posted 8 years ago #

    @moshu: Ah, reading all content of a page helps a lot. Wasn't that my hint for inomaly ;) Thanks

  13. inomaly
    Member
    Posted 8 years ago #

    Again, my thanks to all of you. With your help I've whittled it down to 14 errors, which I'm sure will be significantly less once I get rid of the center tags later this evening. Thanks again!

  14. McShelby
    Member
    Posted 8 years ago #

    Hint: An ul tag is only allowed to follow up an li tag. If you want to have some caption above the list like "Powered by" you have to write it before the ul tag.

  15. RosieMBanks
    Member
    Posted 8 years ago #

    Make sure your images always have "alt" in them and that you've got an equal number of div and /div tags, too. That should take care of a bunch of errors.

    I hadn't validated my site in a long time. After I read your post, inomaly, I checked and found 157 errors! I only needed to fix about ten or twelve things, but it's surprising how quickly the errors creep in over time.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags