English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article introduces the HTML iframe frameborder attribute that specifies whether to display a border around the <iframe>, with online examples demonstrating how to use the HTML iframe frameborder attribute, browser compatibility, syntax definition, and detailed information about its attribute values. HTML5 The <iframe> frameborder attribute is not supported.
Online example of an <iframe> without borders:
<iframe src="https://www.oldtoolbag.com/" width="400" height="250" frameborder="0"> </iframe>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the frameborder attribute.
HTML5 The frameborder attribute of <iframe> is not supported. Please use CSS styles instead.
The frameborder attribute specifies whether a border is displayed around the <iframe>.
Tip:For practical reasons, it is best not to set this attribute and use CSS to apply Border.
<iframe frameborder="1|0">
Value | Description |
---|---|
1 | Default. Border enabled. |
0 | Close border. |