Latest web development tutorials

HTML iframe frameborder attribute

HTML iframe tag Reference Manual HTML <iframe> tag

Examples

Without borders <iframe>:

<iframe src="http://www.w3cschool.cc/" width="200" height="200" frameborder="0">
</iframe>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the frameborder attribute.


Definition and Usage

HTML5 does not support the <iframe> frameborder attribute. Use CSS instead.

frameborder attribute specifies whether a border <iframe> around.

Tip: For reasons of practicality, it is best not to set this property, use CSS to apply border .

CSS Examples: iframe border


grammar

<iframe frameborder="1|0">

Property Value

描述
1 默认。开启边框。
0 关闭边框。


HTML iframe tag Reference Manual HTML <iframe> tag