Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 08-27-2007, 07:47 PM   #1 (permalink)
Junior Googler
 
montyauto's Avatar
 
Join Date: Dec 2006
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
montyauto is on a distinguished road
Thumbs up Is it possible to include header and footer file using HTML

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?
montyauto is offline   Reply With Quote
 
Sponsored Links
Old 08-27-2007, 08:26 PM   #2 (permalink)
Elite Googler
 
[ugly_cat]'s Avatar
 
Join Date: Mar 2006
Location: MM
Posts: 1,789
Thanks: 53
Thanked 55 Times in 52 Posts
[ugly_cat] is an unknown quantity at this point
Send a message via Yahoo to [ugly_cat]
you meant this tags.?
header/footer html
header/footer html
[ugly_cat] is offline   Reply With Quote
Old 08-27-2007, 09:08 PM   #3 (permalink)
Google Guru
 
intelliot's Avatar
 
Join Date: May 2004
Posts: 2,525
Thanks: 14
Thanked 46 Times in 26 Posts
intelliot has disabled reputation
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.
intelliot is offline   Reply With Quote
Old 08-28-2007, 07:00 AM   #4 (permalink)
Elite Googler
 
leftybogs's Avatar
 
Join Date: Feb 2007
Posts: 1,153
Thanks: 0
Thanked 26 Times in 24 Posts
leftybogs is on a distinguished road
you mean like frames?
leftybogs is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 02:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community