PDA

View Full Version : Including header file using HTML


linda.profes
10-22-2007, 09:30 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?

DanTheBanjoman
10-22-2007, 09:35 PM
Add it to what? It helps if you tell us what you're talking about.

W1zzard
10-23-2007, 01:42 PM
not possible in pure html.

if you have php support you can do
<?php include("file.html"); ?> in your html code

Fuse-Wire
10-23-2007, 01:44 PM
hey i would like colourful names like you Dan and W1z, how and how, or is it for the special ones only!!:roll:

Kreij
10-23-2007, 05:58 PM
You can also use server side includes if the web server supports it (and most do).

<!-- #include file="yourfilename.html --> or <!-- #include virtual="yourfilename.html" -->

In case it doesn't here are various options (http://www.boutell.com/newfaq/creating/include.html), including the one W1z mentioned.

anand1
10-23-2007, 06:49 PM
Look at this link for more...
Link (http://www.w3schools.com/tags/tag_tfoot.asp)