WordPress.org

Ready to get started?Download WordPress

Forums

Closing IMG tags (5 posts)

  1. erunama
    Member
    Posted 10 years ago #

    After setting up a WordPress site on my new host a couple days ago, I had the urge to actually make the site validate XHTML compliant. I got down to one problem though: closing image tags in blog entries. I logged into my account, went to the edit section, and edited one of my entries that has an image linked. I put a closing tag </img> in there and hit save.
    My problem: it seems like WordPress drops the tag (since it does nothing). I tried putting it in there and saving a few times, with no luck. Is there anyway around this? I'd like my blog to stay XHTML compliant, since it came "out of the box" that way.

  2. OperaManiac
    Member
    Posted 10 years ago #

    the latest nightlies had an option that automatically suppose to fix tags to make them XHTML compliant. And matt said they work...

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    Yup. There is a functional difference between having WP being valid which it is, and ensuring that the posts are also valid, which from time to time they are not.

  4. erunama
    Member
    Posted 10 years ago #

    The slash at the end of the IMG works good. That should be enough for me. Thanks for the help!

  5. TechGnome
    Moderator
    Posted 10 years ago #

    david.... is <img src="yadayadayada"></img> valid? Not 100% sure that it is.... but I could be wrong... it's been known to happen.
    TG

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.