The HTML <frame> marginheight attribute is used to specifies the top and bottom margin of the content in an frame element.
Syntax:
<frame marginheight="pixels">Attribute Values:
-
pixels: It contains single value pixels which specifies the top and bottom margin of content in an frame element.
Note: This attribute is not supported by HTML 5. CSS property is used instead of this attribute.
Below example illustrates the <frame> marginheight attribute in HTML:
Example:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
<!DOCTYPE html>
<html>
<head>
<title>
HTML frame marginheight Attribute
</title>
</head>
<frameset cols="30%, 40%, 30%">
<frame name="left" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190401113144/gfg_200X2001.png"
marginheight ="40" />
<frame name="main" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190328185307/gfg28.png"
marginheight="30" />
<frame name="bottom" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190807114330/GFG115.png"
marginheight ="40" />
</frameset>
</html>
Supported Browsers: The browsers supported by HTML <frame> marginheight attribute are listed below: