Support » Themes and Templates » Closing IMG tags

  • 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • the latest nightlies had an option that automatically suppose to fix tags to make them XHTML compliant. And matt said they work…

    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.

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

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Closing IMG tags’ is closed to new replies.