How to Close an iFrame
You can use an iFrame function to display the contents of another Web page on your website. This is an HTML function called an "inline frame" that you can easily add to any Web page. Placing an iFrame requires writing the correct code. To make the code work correctly, you must close the function by using a closing tag.
Instructions
-
-
1
Click the "Start" button and then type "notepad" into the search box. Press the "Enter" key to open the program.
-
2
Click "File" and select "Open." Navigate to the location of the HTML file on your system. Click the "Open" button to load the file in Notepad.
-
-
3
Type "<iframe src="example.html" width=600 height=300>" and press the "Enter" key. Type a message, such as "Your browser does not understand iFrames." (Change the values of "width" and "height" to adjust the size of the iFrame on the page.)
-
4
Provide a link to the HTML file for the iFrame by typing "<a href="example.html">Link to file</a>" and then press "Enter." (Replace "example.html" with the HTML file on your server that you wish to display in the iFrame.)
-
5
Type "</frame>" for the closing tag. Click "File" and select "Save." Open the file in your Web browser to test the iFrame.
-
1