views:

72

answers:

5

Firebug is showing this HTML tag as "not well-formed":

<a id="aHarita" target="_blank" style="margin-left: 5px;" href="http://maps.google.com/maps?q=40.879236,29.386641&amp;num=1&amp;t=h&amp;sll=40.879132,29.386962&amp;sspn=0.006295,0.006295&amp;ie=UTF8&amp;ll=40.879317,29.386641&amp;spn=0.003022,0.006947&amp;z=18" >

Where is the problem?

+2  A: 

The & in the href should be html encoded: &amp;.

Darin Dimitrov
A: 

"target" is not a valid attribute for "a" tags.

Andrei Serdeliuc
Depends on the HTML version and variant.
Gumbo
Only if the document uses a strict doctype.
BoltClock
+3  A: 

You need to replace the & inside the attribute value by a reference like &amp; or &#38;, so:

<a id="aHarita" target="_blank" style="margin-left: 5px;" href="http://maps.google.com/maps?q=40.879236,29.386641&amp;amp;num=1&amp;amp;t=h&amp;amp;sll=40.879132,29.386962&amp;amp;sspn=0.006295,0.006295&amp;amp;ie=UTF8&amp;amp;ll=40.879317,29.386641&amp;amp;spn=0.003022,0.006947&amp;amp;z=18" >
Gumbo
+1  A: 

Maybe you have to replace & with &amp; in your href attribute.

munissor
+2  A: 

There's a few things wrong with that, depending on your doctype. Run the page through http://validator.w3.org to get details on the validation failures. This is a good first stop for any validation problems, and should be useful for the future.

Matt Gibson
+1 from me - teach a man to fish and all that.
Dominic Rodger