Frame Tag

Next ❯Form Overview

Frame Tag is used to display a web page within a web page

  • Syntax: <iframe>
Example:
  • turned_in_not<iframe> Tag
    <!DOCTYPE html>
    <html>
      <head><title>Iframe Tag Example</title></head>
      <body>
        <iframe src="sample.html" height="200" width="600"></iframe>
      </body>
    </html>

    Output:

    • To Remove border of your frame, just add "style" Attribute inside your <iframe> Tag ,shown below
    • <iframe src="sample.htm" height="200" width="600" style="border:none;"></iframe>
  • trending_downOpen any link on your web page inside iframe
    
    <iframe src="demo.html" name="iframe_name"></iframe>
    <a href="http://YourSiteURL" target="iframe_name">YourSiteName</a>
    
    • Add above code inside <body> Tag
    • Note! "name" Attribute inside <iframe> Tag should be equal to "target" Attribute inside <a> Tag as shown above
Browsers Supports
SafariMicrosoft EdgeMozilla FirefoxChromeOpera Mini

Click on the above icon to see the name of the browser !

  • Tips! Always try to use latest version of browser

  • Form Overview
❮ Prev Object Tags
Next ❯Form Overview
TryOut Examples"Learn to Explore..!"

TryOut Editor

receipt