Posted by: Amit Nazare on: March 17, 2009
It is a common practice by web developers to make separate header and footer files. As there wont be any changes in these section in any of the pages.
So now the question arises how to use these HTML pages inside another HTML file. There is a solution for this that is
<!–#include VIRTUAL=”/common/header.htm” –>
So the above code makes the header file to include in another HTML file. Just paste this code change the path and use it where you want your header to be displayed.
Oh. Isn’t there any other way to do this, with just basic plain HTML hostings?
Hey that’s handy. Thanks
April 22, 2009 at 4:44 am
TFS, but will this work for extremely plain and static HTML?
I see tags like : server side includes, SSI
Could you Throw some more light here please?
April 22, 2009 at 5:06 am
Ya it will work. SSI, or Server Side Includes, were first developed to allow Web developers to “include” HTML documents inside other pages. And you need to activate SSI for this. SSI is handled by the webserver.