Answers for "how to include html in another html"

4

include html page in another html page

A simple server side include directive to include another file found in the same folder looks like this:

<!--#include virtual="a.html" --> 
Also you can try:

<!--#include file="a.html" -->
Posted by: Guest on June-04-2021
0

include another html file in a html file

<html> 
  <head> 
    <script src="jquery.js"></script> 
    <script> 
    $(function(){
      $("#includeContent").load("fileName.html"); 
    });
    </script> 
  </head> 

  <body> 
     <div id="includeContent"></div>
  </body> 
</html>
Posted by: Guest on February-24-2021

Code answers related to "how to include html in another html"

Browse Popular Code Answers by Language