Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include one HTML file in another HTML file using server side include

Tags:

html

How can I include an HTML file in another HTML file. Is there any simple way to do that?

Thanks

like image 566
Ravi Avatar asked Feb 28 '23 12:02

Ravi


1 Answers

I think you're looking for server side includes: http://en.wikipedia.org/wiki/Server_Side_Includes. To summarize (and oversimplify) change the extension of your page from .html page to .shtml, then you should be able to use an include statement similar to:

<!--#include virtual="somefile.html" -->

like image 82
Paul Degnan Avatar answered May 10 '23 01:05

Paul Degnan