Google maps link not Validating code

Discussion in 'HTML & Website Design' started by citacomp, Jun 30, 2009.

  1. #1
    We have a link on our page to google maps to find us, but because of the way the link is formatted, it is causing failure in page validation. The problem is with the '&' symbols. When I change them to %26 it passes, but the link does not work properly.

    <a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=1284+South+Grant+Avenue,+Loveland,+CO&sll=37.0625,-95.677068&sspn=25.068921,44.296875&ie=UTF8&ll=40.382709,-105.080924&spn=0.011736,0.021629&z=15&g=1284+South+Grant+Avenue,+Loveland,+CO&iwloc=addr" rel="nofollow" target="_blank">Google Maps</a>
    Code (markup):

     
    citacomp, Jun 30, 2009 IP
  2. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe you have inadvertently changed some code in the URI? Anyway, escape the ampersands using &amp;

    James
     
    jamesicus, Jun 30, 2009 IP
  3. citacomp

    citacomp Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, that worked. Since someone else created the page, I was thinking the link was bad too, but it isnt.
     
    citacomp, Jul 1, 2009 IP