How to Copy & Paste a Code to Embed a File to a Web Page
According to W3 Schools, "The embed element is supported by old browsers, like Netscape 4 and 5." However, you can use the OBJECT tag in combination with the EMBED tag for newer browsers. When you embed a file or object, the contents of the file are embedded and not linked to the web page. You should include the file's source, name, height and width in your code. Alternatively, you can use inline frames to embed an HTML file in another.
Instructions
-
Method 1
-
1
Copy ("Edit" and "Copy" in toolbar) the following information (derived from W3 Schools):
<object data="name-of-embedded-file" width="612" height="792">
<embed src=" name-of-embedded-file" width="612" height="792">
</embed>
</object> -
2
Open the HTML file you're modifying in a text editor and scroll down to the <BODY> tag.
-
-
3
Paste ("Edit" and "Paste" in toolbar) the code where you want the embedded file to appear, but change the height, width and file name with the correct values. You can use a percentage for the dimensions instead of a specific number.
-
4
Click "File" and "Save" to save your changes.
Method 2
-
5
Copy ("Edit" and "Copy") the following inline frame code:
<iframe width="612" height="792" src="name-of-embedded-file"></iframe>
-
6
Navigate to the <BODY> tag of your HTML file and paste ("Edit" and "Paste") the code where you want it to appear. Replace the dimensions and file name with the correct values.
-
7
Select "File" and "Save" from the toolbar to save the HTML file.
-
1
References
- Photo Credit homepage - eingabefeld internet http://www image by pmphoto from Fotolia.com