Google Drive can be used to host basic websites or even complex JavaScript-based web apps. You may publish any kind of static content on your website including HTML pages, images, CSS, icons, audio, video etc.
Note: However, Google Drive does not support web resources that make use of server-side scripting languages like PHP.
- Create a public file folder.
- Put your website i.e.the HTML, CSS, Javascript files inside it.
- Open the HTML file and preview it.
- Share the URL that looks like "www.googledrive.com/host/..." from the preview window.
To create a public folder: For this, you simply need to go to folders, create a new folder, and rename it to whatever name you want. Following which, you select the check-box next to the New folder. Click the "Sharing settings" icon. Then click "Change" and make your folder "Public on the web"
To put files in the public folder: Click on your New folder’s title. The new folder is empty as of now. Click on “Upload Files" icon. Select the index.html or other files from you hard-Drive and then click on upload.
If you do not start with an “index.html” file, then the site visitors will not see a website. Instead they will get a directory listing of all the folders in the website. So be sure to include it.
Opening and previewing HTML file: Click on the index.html page. Drive will open the file. Click on the "Open" button at the lower right corner of the screen.Then select preview.
Sharing the URL: Now that you have your URL, simply share with all your friends
To Stay updated With us like our page on Facebook