HTML IFRAMES

Being BENI24

HTML  Iframes

A html Iframe another way to say "Inline" is a HTML component that permits you to embed another html archive or page inside the ongoing page.

It makes a rectangular "edge" or window inside your site page , and the substance of the iframe is commonly shown inside that casings.

The 'src' attribute specifies the URL of the web page you want to embed within the iframe.

The content of the specified URL will be loaded and displayed within the iframe on your web page.

You can control various aspects of the frame's behavior and appearence by using attributes such as 'width' , 'height' , 'frameborder' etc... 

Syntax:

An HTML iframe is defined with the <iframe> tags:
<iframe src="URL"></iframe>  


Example:


  
  <!DOCTYPE html>
  <head
  <title>HTML Iframe</title>
  </head>
  <body>
  <h1>Visit the GOCOURSE website<h1>
  <iframe src="https://www.gocourse.in" width="600" height="400" frameborder="0"> 
  </iframe>
  </body>
  </html>


Output:



Example:  

  
  <!DOCTYPE html>
  <head>
  <title>HTML Iframe</title>
  </head>
  <body>
  <iframe name="iframe_a" height="400px" width="50%"></iframe>
  <p><a href="https://www.gocourse.in" target="iframe_a">gocourse.in</a></p>
  <h1>GOCOURSE website<h1>
  </body>
  </html>


Output:



Uses of html iframes:

  1. embed external content
  2. content isolation
  3. cross-Domain integration
  4. google maps
  5. you tube vedios (can embed)


Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send