By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML Iframe Tag

The Iframe element is used to include other pages into a page.

Edited: 2014-12-28 07:04

The Iframe element in HTML creates an inline frame, the element is only allowed in the Transitional and Frameset document types.


Using Frames is usually a bad idea, especially when a simple division element can create same effect.


Standard Attributes

AttrsOther AttributesId, class, style, titleTF
longdescURIlink to long description. TF
nameCharacter data.Name of frame for targetting.TF
srcURISource of frame content. TF
frameborder1|0Frame borders? TF
marginwidthPixelsThe margin width in Pixels. TF
marginheightPixelsThe margin height in Pixels. TF
scrollingyes | no| autoScroll bars? TF
aligntop | middle | bottom | left | center | rightvertical or horizontal alignmentTF
heightlengthframe heightTF
widthlengthframe widthTF

DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.



The SRC attribute is required.