Help Me/Question Including Header File Using Html

Status
Not open for further replies.
W

Weit4U

Is it possible to include a header and footer file using HTML? I have my file as a .html and need to be able to include the HTML for the header and footer. Anyone know how I can do this?
 

DevonWebsites

Yellow Belt
PHP, ASP & Javascript Includes

You could do it with javascript if you dont have php or asp support.

In php:
Code:
<?php require("./header.php"); ?>
In asp:
Code:
<!--#include file="wisdom.inc"-->
in javascript:
Code:
<script type="text/javascript" src="include2.js"></script>

Hope this helps!
 
W

WTM

For HTML site (it actually would be DHTML) you can use dynamic template template which lets you have standard elements included on all pages.

It works very similar to "include" function described in the previous post...
 
Status
Not open for further replies.
Top