The HTML Iframe frameborder Attribute is used to specify whether or not to display the border around the content of an <Iframe> Element.
Syntax:
html
Output:
Supported Browsers: The browsers supported by HTML <Iframe> frameborder Attribute are listed below:
<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.
<!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=
"https://www.geeksforgeeks.org/
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