HTML iframe


By using the iframe, you can display more than one page in the same browser window.

Frame label iframe

Iframe syntax:

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

The URL points to a different web page. Can also point to a specific HTML file

Iframe - set height and width

The height and width properties are used to define the height and width of the iframe tag.

The property defaults to pixels, but you can specify it to be displayed proportionally (eg "80%").

Instance


Iframe - remove the border


The frameborder property is used to define whether the iframe represents a border.

Set the property value to "0" to remove the border of the iframe:

Instance

Run this program to see how it differs from the above program.

Use iframe to display directory link page

Iframe can display a page with a target link

The properties of the target link must use the properties of the iframe, as in the following example:

Run the program and click to see

HTML iframe tag


Label      Description
<iframe>Define an inline iframe

     
           



Last Updated: 2018-07-06 12:32:44 By akshay

SHARE THIS

share_facebook share_twitter share_google_plus

Please Comment Here :