HTML <frame> marginwidthAttribute

HTML frame 标签参考手册HTML <frame> Tag

Examples

The left and right margins of the first frame are 50 pixels, and the left and right margins of the second frame are 0 pixels:

<frameset cols="50%,50%">
  <frame src="frame_a.htm.html" marginwidth="50">
  <frame src="frame_b.htm.html" marginwidth="0">
</frameset>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the marginwidth attribute.


Definition and Usage

HTML5 does not support the <frame> tag.

The marginwidth attribute specifies the distance between the frame content and the left and right sides of the frame, in pixels.


Syntax

<frame marginwidth="pixels">

Attribute Values

Value Description
pixels Specifies the left and right margins of the frame.


HTML frame 标签参考手册HTML <frame> Tag Other Extensions