The HTML Iframe element (inline frame) is used to display the content of other html documents within a web page.
This allows you to open a subwindow in the browser window.
The size of the Iframe element is determined by using the SRC width and SRC height attributes.

<iframe> </iframe> IFRAME HTML TAG



Iframe The HTML element uses the SRC attribute that contains the URL address of the HTML document.

example IFRAME with relative url address:

<iframe width="560" height="415" src="index.html"> </iframe>

result:


example IFRAME with absolute url address:

<iframe width="560" height="415" src="https://itpresent.com"> </iframe>

result:





A common way to use the html iframe element on web pages is by displaying YouTube videos.

example:
<iframe src="https://www.youtube.com/embed/wIm7u6VbWbg" allowfullscreen></iframe>


result:






Privacy Policy