Display Google Map in XHTML 1.0 Strict Document

Recently while working on a client’s website, they requested that I place a Google map iFrame on their “About” page. Something that looks like this:


View Larger Map

Unfortunately, the above code that generates this nifty frame does not validate as XHTML 1.0 Strict. I did some research into it to see what can be done. Many sites suggested changing the site’s validation to XHTML Transitional, but I didn’t want to do that. Then I found this nifty article over at Ginchen’s Blog. The solution utilizes Javascript. It is a simple, clean solution and it works relatively well. The map doesn’t have all of the functionality of the original, but I think it works just fine.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.