iframe border


<iframe src="" frameborder="0">

Browser
Internet Explorer Firefox Opera
Type
Inline-block

The frameborder attribute of the IFRAME element specifies whether or not to display an iframe border.


<iframe src="example.html" frameborder="0"> - </iframe>


Attribute Value Explanation
frameborder=" " 0 the border is not displayed
1 the border is displayed (default)
Tips and Notes

This can be specified with CSS. Please see the "Related Document" for details on CSS.


Example

<p>
Default
<br>
<iframe src="iexample_b.html" width="300" height="100">Alternate content</iframe>
</p>

<p>
Border is not displayed
<br>
<iframe src="iexample_b.html" width="300" height="100" frameborder="0">Alternate content</iframe>
</p>
Output

Default

Border is not displayed