Include html in another html file [duplicate]
Method 1: I think it would be best way to include an html content/file into another html file using jQuery. You can simply include the jQuery.js and load the HTML file using $(“#DivContent”).load(“yourFile.html”); For example <html> <head> <script src=”https://stackoverflow.com/questions/38837835/jquery.js”></script> <script> $(function(){ $(“#DivContent”).load(“another_file.html”); }); </script> </head> <body> <div id=”DivContent”></div> </body> </html> Method 2: There are no … Read more