HTML <frame> marginwidth Attribute Last Updated : 03 Oct, 2024 Comments Improve Suggest changes Like Article Like Report 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 Valuespixels: 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. HTML <!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: Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML <frame> marginwidth Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML | <frame> marginheight Attribute 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 elem 1 min read HTML <iframe> marginwidth Attribute The HTML <iframe> marginwidth attribute defines the horizontal margin space, in pixels, between the iframe's content and its left and right borders. Syntax<iframe marginwidth="pixels">Attribute Values:pixels: It contains the value i.e. pixel which specifies the right and left margin of t 2 min read HTML | <embed> width Attribute The HTML embed width attribute is used to specify the width of the embedded content. Syntax: <embed width="pixels"> Attribute Values: pixels: The width of embed value are set in terms of pixels. It is used to specify the width of embedded content. Example: html <!DOCTYPE html> <html 1 min read HTML | <frame> scrolling Attribute The HTML <frame> scrolling attribute is used to specify that whether the scrollbar will be displayed or not in the <frame> element. Basically, the scrollbar is used when the content is larger than the Iframe Element.Syntax: <frame scrolling="auto|yes|no"> Attribute Values: auto: It 1 min read HTML <frameset> rows Attribute The HTML <frameset> element's rows attribute defines the number and height of rows in the frameset. Values can be set in pixels, percentages, or using an asterisk (*) for flexible distribution of available space.Syntax<frameset rows="pixels|%|*">Attribute Values:pixels: The height of the 2 min read HTML <table> frame Attribute The HTML <table> element's frame attribute specifies which sides of the tableâs border should be displayed. It can take values like a void, above, below, hsides, vsides, lhs, rhs, or box, controlling how the table's edges are framed.Syntax<table frame="value">Attribute ValuesValueDescrip 2 min read HTML | <frame> noresize Attribute The HTML <frame> noresize attribute is used to specify that the frame element can not be resize by the user. This type of attribute is used to lock the size of the frame element. Syntax: <frame noresize="noresize"> Attribute Values: noresize: It defines the frame element that can not be 1 min read HTML | <pre> width Attribute The HTML <pre> width Attribute is used to specify the maximum number of characters per line. Note: The width Attribute is not supported by HTML5 Syntax: <pre width="number"> Attribute Values: number: It is used to set the maximum number of characters. Example: html <!DOCTYPE html> 1 min read HTML | <col> width Attribute The HTML <col> width Attribute is used to specify the width of a column element. If width attribute is not set then it takes default width according to content. It is not supported by HTML 5. Syntax: <col width="pixels | % | relative_length"> Attribute Values: pixels: It sets the width o 1 min read HTML <canvas> width Attribute The HTML <canvas> width Attribute is used to specify the width of the <canvas> in terms of pixels. Syntax: <canvas width="pixels"> Attribute Values: It contains the value i.e pixels which specify the width of the canvas in terms of pixel. It has a Default value which is 300. Exampl 1 min read Like