Iframe tag in HTML

An inline frame is used to set in a different document inside the present HTML document.
This tag is important tag of HTML. Example of an iframe is here..

<iframe> tag specifies an inline frame.

Syntax for adding an iframe is :

<iframe src="URL"></iframe>


Example :


<iframe src="http://www.phpworldonline.blogspot.com"></iframe>


By default, an iframe has a black border around it. To get rid of the border, add the “style” attribute and use the “CSS” border property.

<iframe src="test_iframe.html" style="border:none"></iframe>