How to Make an iFrame of a Webpage

The HTML "<iframe>" element creates an inline box that you can use to include data independent of your other page content. The "<iframe>" box can contain a large table in a scrollable area, or an external Web page. The default behavior for the "iframe" includes scrollbars. Include an iFrame within your Web page to insert another Web page.

Instructions

    • 1

      Open your HTML document, and click the document location for the iFrame.

    • 2

      Type the "<iframe>" start tag. Include the "src" attribute and provide the webpage URL to display. Insert the height and width dimensions for the iFrame:

      <iframe src="http://www.msn.com" height="300" width="700" ></iframe>

      A horizontal and vertical scrollbar will display as needed. To disable scrollbars, insert the "scrolling" attribute with a "no" value:

      <iframe src="http://www.msn.com" height="300" width="700" scrolling="no" ></iframe>

    • 3

      Save the document. Browse to your document in an Internet browser to test your code.

Related Searches:

Resources

Comments

Related Ads

Featured