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

HTML Reference Manual

HTML Tag Reference

HTML: <frame> marginwidth attribute

The marginwidth attribute specifies the width between the content and the frame on the left and right sides (in pixels).

 HTML <frame> tag

Online Example

The left and right margins of the first frame are 20 pixels, the left and right margins of the second frame are 3 Pixels:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" marginwidth="20">
  <frame src="frame_b.htm" marginwidth="3">
</frameset>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the marginwidth attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The marginwidth attribute specifies the width between the content and the frame on the left and right sides (in pixels).

Syntax

<frame marginwidth="pixels">

Attribute Value

ValueDescription
pixelsSpecifies the left and right margins of the frame.
 HTML <frame> tag