/    Sign up×
Community /Pin to ProfileBookmark

I can not validate this html

Hi
I have the following lines in my we page inside <SCRIPT> tags:

[code=php] document.write(‘<a href=”http://clkuk.tradedoubler.com/click?p=15880&a=9858210&g=468045″ target=”_blank”><img src=”‘+uri+'” border=0></a>’); [/code]

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

[code=php] end tag for element “A” which is not open

…lank”><img src=”‘+uri+'” border=0></a>’);
[/code]

What can I do?

Thanks.

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@the_treeJun 24.2005 — I'm sure it says in the validation results, but anyway. Just change [b]</a>[/b] to [b]</a>[/b].
Copy linkTweet thisAlerts:
@The_Little_GuyJun 25.2005 — Shouldn't this:

uri

Look like this:

url

Im not sure
Copy linkTweet thisAlerts:
@ErikLindemannJun 25.2005 — 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?[b]uri[/b]=http://www.legendarylair.com/site/

I bolded uri for you to see it.
Copy linkTweet thisAlerts:
@wayne_caJun 25.2005 — To The Little Guy:

Check [URL=http://www.w3.org/Addressing/#background]this[/URL] out for info on URIs.
×

Success!

Help @amahmood spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 7.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @qewfun,
tipped: live stream
amount: 5000 SATS,

tipper: @qewfun,
tipped: live stream
amount: 5000 SATS,

tipper: @qewfun,
tipped: live stream
amount: 5000 SATS,
)...