HTML | <iframe> marginheight Attribute
The HTML <iframe> marginheight Attribute is used to specify a top and bottom margin of the content in an Iframe Element.
Syntax:
<iframe marginheight="pixels">
Attribute Values:
- pixels: It contains the value i.e pixel which specify the top and bottom margin of the content in an Iframe Element.
Note: This attribute is not supported in HTML 5, as replacement you can use CSS.
Below example illustrate the <iframe> marginheight Attribute:
Example:
<!DOCTYPE html> <html> <head> <title> HTML <iframe> marginheight Attribute </title> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h2> HTML Iframe marginheight Attribute </h2> <p>Content goes here</p> <iframe src= height="200" width="400" marginheight="80"> </iframe> </center> </body> </html> |
Supported Browsers: The browsers supported by are HTML <iframe> marginheight Attribute listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | <frame> marginheight Attribute
- HTML | <img> src Attribute
- HTML | value Attribute
- HTML | rel attribute
- HTML | max attribute
- HTML | min Attribute
- HTML | low Attribute
- HTML | <img> alt Attribute
- HTML | name Attribute
- HTML | <map> name Attribute
- HTML | <li> value Attribute
- HTML | alt attribute
- HTML | for Attribute
- HTML | dir Attribute
- HTML src attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




