What Is The HTML Iframes

A HTML Iframes is utilized to show a page inside a page.

HTML Iframe Syntax

The HTML <iframe> tag specifies an inline frame.

An inline outline is utilized to insert another record inside the current HTML archive.


<iframe src=”url” title=”description“></iframe>

Tip:It is a decent practice to consistently incorporate a title characteristic for the <iframe>. Use the tallness and width credits to determine the size of the iframe.

HTML Iframe – Set Height and Width

The tallness and width are determined in pixels naturally:


<iframe src=”demo_iframe.htm” height=”200″ width=”300″ title=”Iframe Example”></iframe>

Or you can add the style characteristic and utilize the CSS tallness and width properties:


<iframe src=”demo_iframe.htm” style=”height:200px;width:300px;” title=”Iframe Example”></iframe>

HTML Iframe- Remove the Border

By default, an iframe has a boundary around it.

To eliminate the boundary, add the style characteristic and utilize the CSS line property:


<iframe src=”demo_iframe.htm” style=”border:none;” title=”Iframe Example”></iframe>

With CSS, you can likewise change the size, style and shade of the iframe’s boundary:


<iframe src=”demo_iframe.htm” style=”border:2px solid red;” title=”Iframe Example”></iframe>

HTML Iframe – Target for a Link

As the target frame for a link iframe were used.

The objective trait of the connection should allude to the name quality of the iframe:


<iframe src=”demo_iframe.htm” name=”iframe_a” title=”Iframe Example”></iframe>

<p><a href=”https://www.example.com” target=”iframe_a”>example.com</a></p>