html iframe tag

In the html <iframe> tag is used to create a inline frame in another html page and also it tag use to embed to other page with in the current html page and all main browser supported in <iframe> tag. Iframe tag src attribute only supported on html.

The optional attributes are align,frameborder, height, longdesc, marginheight, marginwidth, name, scrolling, src, width and standard attributes are class, id , style , title.

Syntax:

<iframe> ... </iframe>

Example Code

<iframe src ="../../index.php"></iframe>

Out Put:



In the above example <iframe> tag has been linked to w3schools.com web site php page.





Content