How to embed html page within a html page?

Html IFrame TutorialSounds tricky at first, but this can easily done using the IFrame.The html page to embed can be added to the main page as an IFrame.In this way In-line frames can be used to add small notes and other pieces of information into the main page.

In order to do the so, do the following:
Go the location in the main page where you want the iframe, and add the following:
    <iframe src="target.html" width="200" height="200" align="right">
               This is an in-line frame.
    </iframe>

Using an iframe is very similar to that of the image except that it can embed another page rather than the picture itself. The src attribute defines html page to be embeded. This can be a local page on the server or a page from a remote server. You define size of the iframe be defining the the height and width attributes of the iframe.

Currently all most all the latest browsers support iframe tag, however if browser does not support it, you can  include text within the two tags that would be printed instead of rendering the iframe.

Below is an example of Iframe where it embeds createwebsite4you.com webiste home page in the Iframe.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Subscribe to Feed

Did you like this article? You can get the all the latest articles published at CreateWebSite4You in your email inbox by entering your email address below. Your address will only be used for mailing you the articles, and each one will include a link so you can unsubscribe at any time.

Enter your email address:

Check it Out

Check it out

Tags