Open In App

HTML | <frame> marginheight Attribute

Last Updated : 30 Sep, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
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: html
    <!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>
    
    Output: frameheight Supported Browsers: The browsers supported by HTML <frame> marginheight attribute are listed below:
    • Google Chrome
    • Internet Explorer
    • Firefox
    • Safari
    • Opera

    Next Article

Similar Reads