The HTML Iframe frameborder Attribute is used to specify whether or not to display the border around the content of an <Iframe> Element.
Syntax:
<iframe frameborder="1 | 0">
Attribute Values:
- 0: It has a Default value. It sets the border on one state.
- 1: It sets the border on-off state.
Note: This attribute does not support in HTML5 as a replacement you can use CSS.
Below program will illustrate HTML Iframe frameborder Attribute:
Example:
<!DOCTYPE html> <html> <head> <title> HTML <Iframe> frameborder Attribute </title> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h2> HTML Iframe frameborder Attribute </h2> <p>Content goes here</p> <iframe src= height="300" width="400" marginheight="40" frameborder="0"> </iframe> </center> </body> </html> |
Supported Browsers: The browsers supported by HTML <Iframe> frameborder Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
- HTML | <frame> frameborder Attribute
- HTML | <html> xmlns Attribute
- HTML | scoped Attribute
- HTML | <th> valign Attribute
- HTML | <col> align Attribute
- HTML | poster Attribute
- HTML | Class Attribute
- HTML | style attribute
- HTML | <area> target Attribute
- HTML | oninvalid Event Attribute
- HTML | <select> autocomplete Attribute
- HTML & CSS | Tabindex attribute & Navigation bars
- HTML | <table> bgcolor Attribute
- HTML | onsubmit Event Attribute
- HTML | onunload Event Attribute
- HTML | srcdoc Attribute
- HTML | Marquee truespeed attribute
- HTML | onkeyup Event Attribute
- HTML | ondrop Event Attribute
- HTML | <td> abbr Attribute
Recommended Posts:
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.
Improved By : nidhi_biet



