How to Embed Into a Web Page
Using a single line of code, you can create an impressive web page that contains other web pages. Web developers have used a simple technique for years to create composite web pages. For example, if you want to display a feed from a web cam site on your page, you can do so by adding a single line of code to your site. This line of code will embed the other site within your web page.
Instructions
-
-
1
Open your web page using Notepad or an HTML editing program.
-
2
Paste the following code anywhere after the document's "body" tag:
<iframe src="http://www.xyz.com" height="400" width="400" />
Replace "http://www.xyz.com" with the URL of the web page that you want to embed. Adjust the height and width values to set the desired size of the embedded page. These dimensions are in pixels.
-
-
3
Save your HTML file and open it in a browser. The embedded web page will appear inside a window on your web page.
-
1
Tips & Warnings
Embed as many external web pages as you like on your web page by adding additional Iframe statements. For example, to create a web page consisting of news from multiple sources, add iframes that point to popular news sites.
References
Resources
- Photo Credit the programmer and a computer image by Andrey Andreev from Fotolia.com