HTML Iframe Tag

Posted The: 13/09/2008 At: 11:31

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

Warning

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

Attributes

Standard Attributes

Attribute:Value:Description:DTD:
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.

Example

<iframe 
src="/iframe.html"
width="100%">
</iframe>

The SRC attribute is required.

Comments: [0]

© Brugbart Webdesign