Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

How to add Google map inside html page without using API key ?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

There are two ways to add google maps inside HTML page:

  1. Using API key
  2. Without using API key

To learn first case you can follow the article while to learn other one follow this article.

To insert google map inside the HTML page, follow the steps:

  1. Go to the google maps and search your desired location.
  2. Now, you will see share option, click on it.
  3. Now, a dialog box will appear go to embed a map option.
  4. A new option will be seen inside the dialog box to copy html. And you can also select the size of the map you want to embed inside your page.
  5. Now paste it inside your html page.

Example: How to add Google Map inside HTML page without using API key.

<!DOCTYPE html>
    <meta charset="utf-8">
    <title>Customize the scroll-bar</title>
    <style media="screen">
        body {
            background-image: linear-gradient(
                to right, dodgerblue, darkblue);
        <h1 style="color:lawngreen;">
            Geeks For Geeks
            <!-- Google Map Copied Code -->
            <iframe src=


Note: The issue of this technique is it doesn’t use API so map is not auto updated, so each time you have to manually update the map by changing the HTML code of map.

My Personal Notes arrow_drop_up
Last Updated : 16 Apr, 2020
Like Article
Save Article
Similar Reads
Related Tutorials