Create an Inline Frame (Iframe)

Iframe or Inline frame is a floating frame which sits within a web page document. The content is an external web document that is put inside the floating frame.

To create an iframe on your page, create a new HTML file and add some text then save it as yourpage.html. And then create one more new HTML file and then add the code below within the <BODY> </BODY> tags and name it as inlineframe.html:

<iframe src="inlineframe.html" width="200" height="200" frameborder="0" scrolling="auto" name="myInlineFrame"></iframe>

If you've done it, try to open yourpage.html. This will place inlineframe.html inside the floating frame, within yourpage.html. For width and height, you can change it into a number you want.

No comments:

Post a Comment