iframe seamless attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:iframe

Description

The seamless attribute is a boolean attribute to set if <iframe> should look like it is a part of the containing document (no borders or scrollbars).

In XHTML, the seamless attribute must be defined as <iframe seamless="seamless">.

An <iframe> that looks like it is a part of the containing document:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>

<iframe src="https://www.java2s.com/style/demo/Opera.png" seamless></iframe>

</body><!--from   w  w  w  .j a v a  2  s .  c  o  m-->
</html>

Related Tutorials