• Have just tried clicking on the valid XHTML link and get a report back of 34 problems. I have made a few very minor alterations, but not to anything that is being reported (mainly missing tags). I presume I should not be getting all of these errors? I did make my alterations using Dreamweaver, which, it has been pointed out to me, can make alterations to code. Should I attempt to change the code (in something other than dreamweaver) to remove the problems pointed out by the Valid XHTML site or doesn’t it really matter (looks perfect in ie)?
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • A link to the site might help someone give a more helpful response.
    But what often happens is that a *single* error (often an unclosed tag) can make the rest of the page throw up more errors.
    Nothing wrong with using Dreamweaver – just use the “Code” mode to check for broken XHTML rather than entirely relying on the “Design” mode.
    The site might look as intended in IE, but the invalid code might cause problems in other browsers, so it’s probably worth making the effort.
    Post a link, and I’m sure someone here will be able to point you in the right direction…

    what’s the easiest way to correct invalid xhtml when you don’t know code?

    Moderator James Huff

    (@macmanx)

    Enter your site at http://validator.w3.org/ . Though it looks like a lot at first, the errors and solutions are quite self-explanatory. That’s how I learned.

    That’s what I used. Honestly, it doesn’t seem self-explanatory.

    Okay… some are worse than others:
    – make sure that all you images have an alt tag in them
    <img src="banana.jpg" alt="" />
    That will stop many errors.
    – remove a footer. View Source shows this:
    <hr />
    <div id="footer">
    <hr />
    <div id="footer">

    One of those has to go – you can only have one ‘id’ per name.
    Crisp & Clean
    Replace the & with &
    It will then validate.
    That will remove several errors. Do them, then post back and we’ll take it from there 🙂

    I have one more error. Help is appreciated. Thanks.

    What happens if you remove the ‘ valign=”middle” ‘ code ?
    Or if you try ‘center’ instead of ‘middle’ ?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Valid XHTML Problem’ is closed to new replies.