Click to See Complete Forum and Search --> : I can not validate this html


amahmood
06-24-2005, 01:28 PM
Hi
I have the following lines in my we page inside <SCRIPT> tags:

document.write('<a href="http://clkuk.tradedoubler.com/click?p=15880&a=9858210&g=468045" target="_blank"><img src="'+uri+'" border=0></a>');

When I try to validate it I get the following error:

end tag for element "A" which is not open

...lank"><img src="'+uri+'" border=0></a>');


What can I do?

Thanks.

the tree
06-24-2005, 02:30 PM
I'm sure it says in the validation results, but anyway. Just change </a> to <\/a>.

The Little Guy
06-25-2005, 12:35 AM
Shouldn't this:
uri
Look like this:
url

Im not sure

ErikLindemann
06-25-2005, 01:37 AM
Sorry Little Guy, but on validator.w3.org they use uri in some instances. I'm thinking of finding out what they mean.
like in the address bar it looks like this for my site:
http://validator.w3.org/check?uri=http://www.legendarylair.com/site/

I bolded uri for you to see it.

wayne_ca
06-25-2005, 12:59 PM
To The Little Guy:

Check this (http://www.w3.org/Addressing/#background) out for info on URIs.