Can I include markup from another file in html?

brxndxn

Diamond Member
Apr 3, 2001
8,475
0
76
I know this can be done using Java, but I am trying to avoid using it.

I'm using html and CSS.. I would like to have a common html file for my header, a common file for my navigation, and a common file for my footer.. Then, I would like the content to change with each link - all while keeping the same header and footer.

I was thinking I could just have say.. 'head.htm' and refer to head.htm somewhere in an html file and have it parse the text contained in the file.. like @import or something..

Is there any way to do this?
 

Celeryman

Senior member
Oct 9, 1999
310
0
76
Do you have server side scripting language available to you? That is the best option. You could most likely use SSI. Google it. If not, there is the possibility of using something like iframes, but that could get messy.