THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML Iframes


iframe is use to show a website page inside site page.



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

we are use alter stature and width credits to estimate.

The trait esteems are indicated in percent and can be pixel.

Example

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

Iframe - Remove the Border

when of course then iframe has dark outskirt around it.

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> Defines an inline frame