Hot answers tagged html
Depending on what you are using the html files for, you can try changing the extension. For example, call a file content.html.txt. One thing I store html files for is to link them to content editor web parts. In that case the extension doesn't matter.
I would suggest to use a simple IDE to develop your code. This IDE will help you by finding simple errors. A free example for a IDE is Visual Studio Code but there are loads of IDE's for you to choose. Here's the output if I paste your code: After knowing the simple errors fixing is not the problem - at least the ones caused by bad syntax.
Apart from Re-usable content you can use a Content Editor WebPart (CEWP) Do not put any Content in it, but set the reference Link, it will execute the HTML (including script tags> from that file inline... depending on what to do you may want to wait till everything is loaded Content needs to come from an accesible location, so can span Site Collections. ...
Only top voted, non community-wiki answers of a minimum length are eligible