<iframe>

Description

This element creates a frame that can be placed anywhere inside a document. Unlike the <frame> element, it is inserted into a normal HTML page that has a <body> tag.

Example


<html>
<body>
  <p>
    <iframe id="myIframe" 
            frameborder="1" 
            scrolling="yes"
            src="http://java2s.com" 
            width="600" 
            height="400">
    </iframe>
  </p><!--   ww  w.  java 2s  .  c om-->
</body>
</html>

Click to view the demo

The code above generates the following result.

iframe




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference