WordPress.org

Ready to get started?Download WordPress

Forums

XHTML invalid 57 errors w/reoccurring theme. (10 posts)

  1. Missychele
    Member
    Posted 9 years ago #

    Ugh. I started messing with the index.php and now I have made a huge mess. If anyone would take a look and help me figure out whats going on I would really appreciate it.
    The address is http://www.stripedpinkbunny.com/blog

  2. Amelie
    Member
    Posted 9 years ago #

    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.

  3. Arzel
    Member
    Posted 9 years ago #

    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.

  4. Missychele
    Member
    Posted 9 years ago #

    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?

  5. 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="http://www.domain.com">, but notice that the link button now displays as /link. Hitting the button again gives you </a>, closing the tag.

  6. Amelie
    Member
    Posted 9 years ago #

    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 :)

  7. Missychele
    Member
    Posted 9 years ago #

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

  8. Missychele
    Member
    Posted 9 years ago #

    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?

  9. Amelie
    Member
    Posted 9 years ago #

    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.

  10. Missychele
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.