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) |
This can be specified with CSS. Please see the "Related Document" for details on CSS.
<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>
Default
Border is not displayed