HTML Iframe

  • The HTML Iframe is an Inline Frame used to embed another webpage within a document.
  • This element in HTML is used to embed content from another source within a web page.
  • It creates a window or frame within the current document where external content can be displayed, such as a webpage, video, map, or document.

Syntax:

iframe

iframe Attributes –

a) height:

  • It is used to set the height of the element.

b) Width:

  • It is used to set the width of the element.

c) src:

  • It is used to add the file path.

d) title:

  • Used to define the content the content of the iframe and it is used by the reader.

e) frameborder:

  • Used to add the border to the iframe.

f) style:

  • Used to add the style to the iframe.

Example:

audio-example

🚀 Try it yourself! Click the button below to run the code and see the output in action.

HTML Code

Output

Important Note: Want to download the full HTML course as a PDF? Click here to save it locally!

Leave a Comment