467,874 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,874 developers. It's quick & easy.

Acessing HTML files

How to include an HTML file within an another HTML file
Feb 15 '08 #1
  • viewed: 1110
4 Replies
Expert 256MB
Not with html, HTML is purely a clientside presentation language.
HOWEVER you can do it using XML, and Javascript, or a serverside language (PHP or ASP).

it is relativly straight forward with the above. make a choice and then ask in the relative forum. Cheers mate!
Feb 15 '08 #2
Expert 4TB
Don't agree entirely with that.

You can use the so-called SSI (Server Side Includes) from within HTML but only if the server supports SSI, which a lot of servers do. With SSI you can not only include files but a lot of other things also.

Best is to use google and have a look at the zillion entries. An introductory overview can be found HERE

Feb 15 '08 #3
SSI, or Server Side Includes, were first developed to allow Web developers to "include" HTML documents inside other pages. If your Web server supports SSI, it's easy to create templates for your Web site.

1. Save the HTML for the common elements of your site as separate files. For example, your navigation section might be saved as navigation.html or navigation.ssi.
2. Use the following SSI tag to include that HTML in each page.

<!--#include virtual="path to file/include-file.html" -->

3. Use that same code on every page that you want to include the file.
Feb 15 '08 #4
Thank u.. ya i have done by using ASP.. but i need it in HTML itself
Mar 11 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by TrustyTif | last post: by
1 post views Thread by piyush.plaban | last post: by
17 posts views Thread by jeff | last post: by
2 posts views Thread by Jay | last post: by
1 post views Thread by Philip | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.