I have made a page in html5 with css3. It works fine on local (I dont use any server, just doubleclick in the index to open it).
I want to put it in google drive. I have load all the documents needed, but when I try to open the html, I can only see the text (I mean, it is not being executing, I can see just the source code). Any suggestion?
Create a new folder in Drive and share it as "Public on the web." Upload your HTML, JS & CSS files to this folder. Open the HTML file & you will see "Preview" button in the toolbar. Share the URL that looks like www.googledrive.com/host/... from the preview window and anyone can view your web page.
Go to drive.google.com, right-click any image file, and choose Get Link to get a shareable link of that image. Make sure that the access is set to Anyone on the internet with this link can view. Paste that file link in the box below to generate the HTML embed code.
Create a website straight from Google DriveYou can build a website to view and display your files in many different ways, including a blog or a dashboard. You can even create a digital asset store where you can easily filter through images.
EDIT: As of August 2016 Google Drive can no longer be used to host static web pages, so this solution no longer works.
Not available any more, https://support.google.com/drive/answer/2881970?hl=en
Host web pages with Google Drive
Note: This feature will not be available after August 31, 2016.
I highly recommend https://www.heroku.com/ and https://www.netlify.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With