'iframe' identifies a frame that can be placed anywhere inside a document : iframe « Tags « HTML / CSS






'iframe' identifies a frame that can be placed anywhere inside a document

  
    
<html>
<head>
<title>iframe element example</title>
</head>
<body>
    <p align="center">
    <iframe id="myIframe" 
            frameborder="1" 
            scrolling="yes"
            src="http://www.java2s.com" width="600" height="400">
    </iframe>
    </p>
<br><br><br>
    <p align="center">
    <iframe id="myIframe" 
            frameborder="10" 
            scrolling="yes"
            src="http://www.java2s.com" width="600" height="400">
    </iframe>
    </p>

</body>
</html>
    
      
        
    
  








Related examples in the same category

1.Use css to replace iframe
2.iframe style
3.An inline frame
4.target="iframe"
5.'allowtransparency' creates the transparent frames
6.'scrolling' sets whether a frame should have a scroll bar or not
7.'security' sets whether the source file has security restrictions