Log in

View Full Version : Including header file using HTML



Casanova
12-03-2006, 07:34 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?

ItsMeOnly
12-03-2006, 09:18 PM
In a way: but not HTML directly. Client-side, you can use AJAX, server-side it's easier though.

You can always resort to frames, iframes or <object type="text/html">, yet it should be noted that the last is not well supported- it will work with most current browsers though, iframe is only valid within transitional doctypes, frameset causes nothing but trouble.