Support » Themes and Templates » XHTML invalid 57 errors w/reoccurring theme.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You need to make sure your images all have an ‘alt’ element, and that they ‘self-close’. Example: <img src="someimage.jpg" alt="Add something here" /> See the slash before the close of the tag? That’s called self-closing, you need to go through your entries and make sure any images you’ve used are coded in this way. I hope that helps you out.

    Edit your posts that contain images. All image tag should end with alt=”” />

    ex: <img src=”image.gif” border=”0″ alt=”image name” />

    Edited: Ops, Amelie has already answered your question. Take her advice.

    Okay, I’ll go back and check why it didn’t close. Also though there seems to be a problem with the closing tags <*/h3> and <*/a>. Any idea what’s going on there?

    Moderator James Huff


    Halfelf Minion 🚀

    There shouldn’t be a asterisk in that if that’s what you’re doing. They should be </h3> and </a>. If you’re using quick tags buttons to create the tags, you have to hit the button again to closer them. Ex:
    Hitting the link button gives you <a href="">, but notice that the link button now displays as /link. Hitting the button again gives you </a>, closing the tag.

    This could be because of 1 of 2 things, either you’ve got a </a> in there when you didn’t open a link, or you haven’t nested your tags properly (nesting = closing tags in the order you opened them, ex. <a><i><b>text</b></i></a>)

    EDIT: no wait, I see what you’ve done – you’ve already closed your h3’s etc so basically you’re closing them twice if you see what I mean. You need to take out the duplicates 🙂

    Thanks Macmanx. It’s just an old coding habit to use astericks. I haven’t actually used them in my code, however. LOL

    Yes, amelie, I thought that was the problem,too, but I removed them and ended up with even more errors. I just can’t figure it out what they are telling me to do since I did’t put those tags in to begin with. Those were tags that WP or layout.css was using. I didn’t have a problem until I added the bunny image to the title. That seemed to screw up everything. Oh, and I moved the date, too. Could that be it?

    Ok, from looking at your source code, this is what seems to be the problem: You have a <div> tag open (class=post), you then have an h3, an a, and an image. This is all fine, however you need to close all those tags before you go on to use your div class=meta tag, that is what is causing it to display those errors.

    Thanks for the help, Amelie, I fixed the tags…so no more errors. For now, anyway;-)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘XHTML invalid 57 errors w/reoccurring theme.’ is closed to new replies.