Contents
OneDrive is an online document/file storage platform. It’s typically used by individuals and business teams who need a central location to store and access files. SharePoint is a collaboration tool for businesses that need multiple individuals and teams to work on documents and products at the same time.
How to host a static HTML site on SharePoint
- Rename all your .html files to .aspx and make sure all the links in the site are correct.
- Open the SharePoint site using SharePoint designer.
- Open the Site Pages or Pages library.
- Copy all your files to the library.
Can you use SharePoint to host static HTML sites?
SharePoint can be used to host the static HTML sites if you follow the 5 simple steps described in this article. Rename all your .html files to .aspx and make sure all the links in the site are correct
How to host static HTML page and override all existing JavaScript?
Use Iframe and reference the -tag to a url in a document library that contains your files yourhtml.aspx, yourjs.js, yourrcss.css. Get your references to scripts and css correct in yourhtml.aspx. Use script editor web part, or content editor pointing to a *.txt containing the iframe tag. OR insert code into content editor.
How to host static HTML in Microsoft Azure?
You can create an App service in Azure to host your static HTML. There is Microsoft documentation with detailed instruction to set this up. You can lot of options with App service like Auto scaling, Custom domain, Anonymous access, auto deployments etc.
Using Sharepoint Designer, if I created a HTML page in the root of my site collection, the page opens in the browser as expected. As soon as I dropped it into a document library, it downloads the file. So it looks like you need SharePoint Designer and do not store the files in a document library.