View Full Version : Including header file using HTML

mr. Adam
07-07-2007, 10:39 PM
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?

07-07-2007, 10:43 PM
You can use an Iframe (Inline Frame). http://www.designplace.org/tutorials.php?page=1&c_id=1

07-07-2007, 10:46 PM
I'm guessing you're meaning something like the PHP include function?

<?php include("extensions/footer.php"); ?>

If you can use serverside languages, use them much for efficient. However, if you are restricted iFrames would be the way to go, however they aren't recommended. A JavaScript solution is listed on this page: http://www.boutell.com/newfaq/creating/include.html