Forum Moderators: open
I'm trying to validate my html pages but for the ones where I have some picture links with a comment the validator keeps giving me errors.
I have checked my code in detail and I don't see any problem (which I'm aware of at least).
Here an example:
validator says:
1. Line 11, column 262: end tag for element "IMG" which is not open
Line 11 in my code taken from the validator in self(edited for forum URL TOS) :
11: <div class="someclass"><a class="someotherclass" href="/sample/sample/sample.html" title="Some Title"><img src="/img/subimg/some-image.jpg" alt="Some Alt text"><br>Some additional info</img></a></div>
Doed anybody know what is not good here?
thanks,
Carlos.
This is what I am using:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
But you gave me the answer .. <img> is not a container ... that was my problem, I still have to check the references for every tag I use ;-), it was my mistake to try close all of them :-) .. I was even trying to close <meta> tag :-)
Now I'm happy .. all my pages looks to be validating fine.
Thanks!
Carlos