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

HTML Reference Manual

HTML Tag大全

HTML: <frame> marginheight attribute

The marginheight attribute specifies the height between the content and the top and bottom of the frame (in pixels). HTML5The <frame> tag is not supported.

 HTML <frame> tag

Online Example

The top and bottom margins of the first frame are 30 pixels, the top and bottom margins of the second frame are 5 Pixels:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" marginheight="30">
  <frame src="frame_b.htm" marginheight="5">
</frameset>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the marginheight attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The marginheight attribute specifies the height between the content and the top and bottom of the frame (in pixels).

Syntax

<frame marginheight="pixels">

Attribute Value

ValueDescription
pixelsSpecifies the top and bottom margins of the frame.
 HTML <frame> tag