The HTML <frame> element's marginwidth attribute defines the horizontal space (in pixels) between the frame's content and its left and right borders. This attribute is deprecated in HTML5, with CSS and <iframe> recommended instead.
Syntax
<frame marginwidth="pixels">Attribute Values
- pixels: It contains single value pixels which specifies the right and left margin of the content in a frame element.
Note: This attribute is not supported in HTML 5. CSS property is used instead of this attribute.
Below example illustrates the <frame> marginwidth attribute in HTML:
Example: In this example we use the marginwidth attribute in <frame> to define the horizontal space (in pixels) between the frame's content and its borders for better spacing.
<!DOCTYPE html>
<html>
<head>
<title>
HTML frame marginWidth Attribute
</title>
</head>
<frameset cols="30%, 40%, 30%">
<frame name = "left" src =
"https://media.geeksforgeeks.org/wp-content/uploads/20190401113144/gfg_200X2001.png"/>
<frame name="middle" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190328185307/gfg28.png"
marginwidth="30" />
<frame name="right" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190807114330/GFG115.png"
marginwidth="40" />
</frameset>
</html>
Output:

Supported Browsers
The browsers supported by HTML <frame> marginwidth attribute are listed below: