What is the use of an iframe tag?


An iframe is used to display a web page within a web page.

Syntax:

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

Example:

<iframe src="demo_iframe.html" width="200px" height="200px"></iframe>  

Target to a link:

<iframe src="http://www.google.com" name="iframe_a"></iframe>  

Leave a Reply

Your email address will not be published. Required fields are marked *