THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML Iframes


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



Iframe Syntax

The sentence structure for including an iframe is:

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

The src property indicates web address of the iframe page.


Iframe - Set Height and Width

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

The attribute is in pixels by default, but you can specify it to be displayed proportionally (eg "80%").

Example

<iframe src="check_iframe.htm" width="100" height="100"></iframe>

Iframe - Remove the Border

Iframe-remove border

we can evacuate fringe, by including style of characteristic and css property

.

Example

<iframe src="check_iframe.htm" style="border:none"></iframe>

conclusion we can change shading and style size of the iframe fringe.

Example

<iframe src="CHECK_iframe.htm" style="border:5px specked red"></iframe>

Use iframe as a Target for a Link

An iframe can be utilized as the objective edge for a link.

The target trait of the connection must allude to the name quality of the iframe:

Example

<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p><a href="http://www.welookups.com" target="iframe_a">welookups.com</a></p>
Try it Yourself »

HTML iframe Tag

Tag Description
<iframe>

An inline frame is used to embed another document in the current HTML document.