THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <frame> frameborder Attribute

❮ HTML <frame> tag

Example

A two-framed page, with no frameborders:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" frameborder="0">
  <frame src="frame_b.htm" frameborder="0">
</frameset>
Try it Yourself »

Definition and Usage

The <frame> tag is not supported in HTML5.

The frameborder attribute specifies whether or not to display a border around a frame.

Tip: For practical reasons, it may be better not to specify borders, and use CSS to apply border styles and color instead.

CSS Example: frame borders


Browser Support

Attribute
frameborder Yes Yes Yes Yes Yes

Syntax

<frame frameborder="1|0">

Attribute Values

Value Description
1 Border on (this is default)
0 Border off

❮ HTML <frame> tag