how to include a html page with in another html page



I want to include an html page with in another html page. So I used the following code

<!--#include file="footer.html" -->

But it's not working. I am using Linux server. Is there is any other way to do this?


To use that syntax you must enable <a href="http://bignosebird.com/ssi.shtml" rel="nofollow">SSI</a> and configure your server to process your files for it (by default, if SSI is turned on, most servers will only look for SSI directives in files ending in .shtml).

If you want to do this in HTML, then your only real option is <a href="http://www.w3.org/TR/html4/present/frames.html" rel="nofollow">frames</a>, which have lots of <a href="http://www.google.co.uk/search?q=problems%20with%20using%20frames" rel="nofollow">drawbacks</a>.

You may be better off using a template language. I like <a href="http://template-toolkit.org/" rel="nofollow">Template-Toolkit</a> which you can use on the server (with Perl) or run offline (e.g. with the <a href="http://template-toolkit.org/docs/tools/ttree.html" rel="nofollow">ttree utility</a>).


Linux is case sensetive ;). File should be in the same directory as the file from which you are calling it at the moment. And watch cases. If the file is called Footer.HTML or FoOter.html it won't open.


Depending on how your server is set up you would need to confirm if you have enabled Sever Side Includes.

Here is an article that would assist you further. <a href="http://www.linuxtopia.org/HowToGuides/apache_ssi.html" rel="nofollow">http://www.linuxtopia.org/HowToGuides/apache_ssi.html</a>

Another way of doing it would be to use a server side language such as PHP



  • Increase thread quantum from user-mode
  • Multiple Runnable in a single thread -java
  • The import edu.stanford.nlp.pipeline.StanfordCoreNLP cannot be resolved?
  • Capture selected text using keyboard shortcut
  • Has Angular.dart directive an equivalent to AngularJS's `restrict`
  • Angular DatePicker - Multiple directives > [datepicker, datepicker]
  • SQL Azure SPLIT AT Backend Process and Resource Throttling
  • angularjs accessing ng-model from outside the $scope
  • 500 internal server error in ruby on rails
  • LCD Programming with Arduino
  • Simple Angular 2 app gives “Potentially unhandled rejection” error
  • limited threads in soapUI free version
  • Using HTML/CSS for UI in XNA?
  • Send emails through VB6 if no email client
  • You tube videos are not playing
  • Rest Services conventions
  • Django invalid literal for int() with base 10
  • Breaking out column by groups in Pandas
  • How solve “Qt: Untested Windows version 10.0 detected!”
  • xtable package: Skipping some rows in the output
  • How do I access an unhandled exception in an MVC Error view?
  • Time complexity of a program which involves multiple variables
  • Google Custom Search with transparent background
  • C++ Partial template specialization - design simplification
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Spray.io: When (not) to use non-blocking route handling?
  • Modifying destination and filename of gulp-svg-sprite
  • vba code to select only visible cells in specific column except heading
  • GridView Sorting works once only
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • How to get icons for entities from eclipse?
  • Proper way to use connect-multiparty with express.js?
  • Load html files in TinyMce
  • JaxB to read class hierarchy
  • Busy indicator not showing up in wpf window [duplicate]
  • Observable and ngFor in Angular 2
  • To Get the radio button value in ruby on rails