Two line Coding help problem PLEASE

Started by tmlfever, September 24, 2004, 09:19:04 AM

Previous topic - Next topic

tmlfever

Can anyone tell me what wrong with this code? My page won't validate because of this line.

THIS IS THE ERROR:

Below are the results of attempting to parse this document with an SGML parser.

Line 114, column 115: end tag for "img" omitted, but OMITTAG NO was specified

...60" alt="shop.nhl.com" border="0"></a></td></tr>

You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".

Line 114, column 0: start tag was here

<img src="http://www.awltovhc.com/image-1452859-10298446" width="234" height="60

THIS IS THE CODE:

<td valign="middle"><a href="http://www.dpbolvw.net/click-1452859-10298446" target="_blank">
<img src="http://www.awltovhc.com/image-1452859-10298446" width="234" height="60" alt="shop.nhl.com" border="0"></a></td></tr>

What should it look like?


"Every time you wake up, ask yourself, "What good am I going to do today?", remember that when the sun goes down at sunset, it will take a part of your life with it."

I've seen the Leaf jersey everywhere from Kabul to Tonga. I've never seen it in a Stanley Cup final.

roboter88

add this

</img> before  the </a> to close the image tag.

tmlfever



"Every time you wake up, ask yourself, "What good am I going to do today?", remember that when the sun goes down at sunset, it will take a part of your life with it."

I've seen the Leaf jersey everywhere from Kabul to Tonga. I've never seen it in a Stanley Cup final.

Søren Bjerg

Or just add the slash at the end of the <img> tag... looks cleaner and better, in my opinion;

<img src="http://www.awltovhc.com/image-1452859-10298446" width="234" height="60" alt="shop.nhl.com" border="0" />
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

tmlfever



"Every time you wake up, ask yourself, "What good am I going to do today?", remember that when the sun goes down at sunset, it will take a part of your life with it."

I've seen the Leaf jersey everywhere from Kabul to Tonga. I've never seen it in a Stanley Cup final.

Advertisement: