Sometimes, we want to remove the border from an iframe with HTML.
In this article, we’ll look at how to remove the border from an iframe with HTML.
How to remove the border from an iframe with HTML?
To remove the border from an iframe with HTML, we set the frameBorder
attribute.
For instance, we write
<iframe src="myURL" width="300" height="300" frameborder="0">
Browser not compatible.
</iframe>
to set the frameborder
attribute to 0 to remove the iframe’s border.
Conclusion
To remove the border from an iframe with HTML, we set the frameBorder
attribute.