View Full Version : Map not validating

11-21-2010, 01:12 AM
<img class="border" alt="googtatic_map"
src="http://maps.google.com/maps/api/staticmap?center=51.454863,0.011673&zoom=13&markers=United+Reformed+Church,+111+Burnt+Ash+Road,++Lee,+London+SE12+8RG,+UK&size=250x250&sensor=true" />

I have the above code and it is not validating with the w3c validation for XHTML it has thrown up 8 errors and 14 warnings. Should I ignore them or what? As I do like my code to validate.

11-21-2010, 02:24 AM
you’re not using XHTML anyway, so it doesn’t really matter. (if you were using XHTML, it would only work if it were valid)

11-21-2010, 03:09 AM
I am working in XHTML and I did wrap my code in code tags

11-21-2010, 04:39 AM
It's very common for 'third party' code like that to not validate, but some library is generally used to covert it into valid code during page load.
So the browser understands it and it's not generally a big problem.

Old Pedant
11-21-2010, 10:29 PM
You can get rid of several of the errors/warnings by simply replacing all the & in the URL string with &amp;

What are the other errors/warnings? Can you show us the page live?