How to Use iFrames in HTML

HTML is the underlying markup language used for developing Web pages and websites over the Internet. HTML is simple and easy to learn. Its syntax consists of tags, brackets and HTML elements. Iframes are one such element, used to insert a Web page within another Web page. Web designers used iframes to insert RSS news feeds, contact forms and online applications within their existing HTML Web pages. Defining an iframe in your HTML document requires adding its opening <iframe> and closing </iframe> tags.

Instructions

    • 1

      Open Notepad.

    • 2

      Type or copy and paste the following HTML code block:

      <html>

      <body>

      <h1> My Iframe web page</h1>

      <iframe src="http://EnterYourURL.com" width="700" height="500"></iframe>

      </body>

      </html>

    • 3

      Click "File" and then "Save as." Select "All files" as the "Save as type."

    • 4

      Save your file as an HTML Web page on your computer. Place an .html extension at the end of the file name. Example: myHTMLiframepage.html.

    • 5

      Locate your HTML file on your computer where you saved it and double-click it. It should open in your Web browser and load a blank page in the iframe window. Insert your URL in place of "http://EnterYourURL.com" in the iframe tag to load the desired website.

Related Searches:

References

Resources

Comments

Related Ads

Featured