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

HTML Reference Manual

HTML Tag大全

HTML: <frame> frameborder attribute

The frameborder attribute specifies whether to display the border around the frame, for practical reasons, it is best not to set this attribute.

 HTML <frame> tag

Online Example

Two-page web pages without borders:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" frameborder="0">
  <frame src="frame_b.htm" frameborder="0">
</frameset>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the frameborder attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The frameborder attribute specifies whether to display the border around the frame.

Tip:For practical reasons, it is best not to set this attribute; use CSS to apply Border style and color.

CSS Example: Frame border

Syntax

<frame frameborder="1|0">

Attribute value

ValueDescription
1With border (default).
0No border.
 HTML <frame> tag