Elements – Iframe Tag

Iframe Tag

Iframe tags are used to add an existing web page or app to your website within a set space.

When using the iframe tags the src attribute should be used to indicate the location of the web page or app to use within the frame.

<iframe src="framesite/index.html"></iframe>

You can set the width and height attributes to limit the size of the frame.

<iframe src="framesite/index.html" height="500" width="200"></iframe>

Iframes have a border by default, if you wish to remove this you can do so by using the style attribute and setting CSS border properties to none.

<iframe src="framesite/index.html" height="500" width="200" style="border:none;"></iframe>

More Information:

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.