|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Googler
![]() Join Date: Dec 2006
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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? |
|
|
|
|
Sponsored Links
|
|
|
|
#3 (permalink) |
|
Google Guru
![]() Join Date: May 2004
Posts: 2,525
Thanks: 14
Thanked 46 Times in 26 Posts
![]() |
To dynamically include other files in your page, your server needs to support some kind of scripting language. This can be PHP or SSI, the most commonly-used ones. See Wikipedia for more info on Server Side Includes.
It's possible to do client-side includes (plain HTML), but I don't recommend this route. Note that it's possible to make your webserver interpret SSI commands on HTML pages - just make a change to your .htaccess file. This requires a Unix-based server, such as Linux. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does using i-frame or php include make a difference? | montyauto | Search Engine Optimization Forum | 9 | 08-06-2007 05:50 AM |
| Including header file using HTML | black-and-white | Web Design, Coding & Programming Forum | 3 | 12-27-2006 04:44 AM |
| Isn't X-HTML like the older version of HTML? | ricards | All About Google | 1 | 11-17-2005 10:34 AM |
| Can I put adsense code in a javascript include? | eelsource | Google AdWords & AdSense Forum | 2 | 01-01-1970 11:33 AM |
| Isn't X-HTML like the older version of HTML? | ricards | All About Google | 1 | 01-01-1970 10:08 AM |