George
George

Reputation: 255

adding Google Maps API to HTML

I have a very simple question. I need to insert Google Maps API in my HTML. I am not able to do it in the Head section. Is that fine if I add that code fragment in Body before it is being used or what would be better solution?

Thanks

     <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false </script>

Upvotes: 0

Views: 195

Answers (1)

Daniel Blaichinger
Daniel Blaichinger

Reputation: 348

Normally the best solution is to put it to the Head, but however if you can't do it then put it just before the closing body tag.

Just one more thing, you have to close your script tag '>' and end the string, like here:

 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

Upvotes: 1

Related Questions