How to embed (almost) any document to HTML?

How can I embed a locally stored HTML document without using an IFrame?

  • Answer:

    It can be done in a couple of ways. You can save your main html page as .php instead, and then add the following code were you wish to include your html page <?php include("filename.html"); ?> If your site support SSI, you can use the following code instead <!--#include virtual="filename.html" --> And finaly, you can ofcourse include it, using Iframe, although search engines don't like this. (borders can be removed through css) You can also include the content of the page directly instead, something i would do as it is tends to be more SEO friendly.

Jørgen Christopher Sommerro Juel at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.