Categories
HTML

How to open Google map with specific address in a browser with HTML?

Spread the love

Sometimes, we want to open Google map with specific address in a browser with HTML.

In this article, we’ll look at how to open Google map with specific address in a browser with HTML.

How to open Google map with specific address in a browser with HTML?

To open Google map with specific address in a browser with HTML, we use the Google map URL.

For instance, we write

<a
  href="http://maps.google.com/?q=50 Hagiwara Tea Garden Dr, San Francisco, CA 94118, United States"
>
  ...
</a>

to add the Google map URL with the q query parameter set to the address to show on the map.

Conclusion

To open Google map with specific address in a browser with HTML, we use the Google map URL.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

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