English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML: <iframe> frameborder attribute

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.

 HTML <iframe> tag

Online Example

Online example of an <iframe> without borders:

<iframe src="https://www.oldtoolbag.com/" width="400" height="250" frameborder="0">
</iframe>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the frameborder attribute.

Definition and Usage

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.

CSS Example: iframe border

Syntax

<iframe frameborder="1|0">

Attribute value

ValueDescription
1Default. Border enabled.
0Close border.
 HTML <iframe> tag