elibraryportal Logo

HTML Iframe ?

HTML Iframe or Inline Frame is used to display web pages within a web page.


Here, "src" is attribute which specifies the web address (URL) or Path of the inline frame page.



HTML Iframe Example

Notepad Save File Name:- demo_iframe.htm

Using iframe in Youtube Video

⟼ <iframe> tag use in add a YouTube video on your webpage. You can use many properties like set height, width, autoplay etc.

Add Youtube Video there are following stpes:-

  1. Open the Youtube video which you want to embed.
  2. Click on SHARE Button Option Using iframe in Youtube Video Example
  3. Click on Embed <> option. see in figer
  4. Copy HTML code.
  5. Paste the code in your HTML file
  6. If you Change height, width, and other properties



Next TopicHTML Formating