HTML IFrame Tag is an abbreviation of In-Line Frames which is used to embed one HTML document inside another HTML document. It is generally used to overcome the disadvantages of using Frames. It is also used for displaying advertising content or for the purpose of comparing two or multiple HTML documents.
<form> <img src="image link here.." alt="image Name here.."> </form>
<!DOCTYPE html> <html> <head> <title>My HTML Image Tag Example</title> </head> <iframe src="html-phrase-tag-Live-Demo.php" width="100%" height="300" /> </html>
This will produce following result
The below table contains HTML IFrame Attributes and their description which is supported by HTML version.
|refers to the url of the document to be loaded into the iframe
|refers to the height of an iframe
|refers to the width of an iframe
|refers to the the alignment of an iframe with respect to surrounding elements
|refers to space to be left at the top and bottom sides of the iframe
|refers to space to be left along the sides of the iframe
|refers to a name for the iframe
|refers to to decide whether to have scrollbarsin a iframe
|refers to URL to the document containing long description of the iframe
|refers to whether borders of the iframe are shown