The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <I> | Next Tag: <ILAYER> |


<IFRAME>

Creates an inline frame (also known as a floating frame).

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported
Notes:
  • This tag requires the </IFRAME> end tag.
  • To handle browsers that don't support this tag, insert text between the <IFRAME> and </IFRAME> tags.
Attributes:
ALIGN = "Text"
The horizontal alignment of the inline frame, as well as the alignment of text that follows the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Notes:

  • Possible values: LEFT, MIDDLE, RIGHT, TOP, BOTTOM.
  • If you use LEFT or RIGHT, subsequent text will wrap around the inline frame..
  • This attribute is deprecated.

APPLICATION = "Yes/No"
Determines whether the content of the inline frame is an HTML Application.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 5.0 and later Not supported

Notes:

CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

FRAMEBORDER = "Yes/No"
Determines whether a border appears around the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

HEIGHT = Positive integer
The inline frame's height, in pixels.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

HSPACE = Positive integer
The horizontal space, in pixels, that is added to the left and right sides of the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 3.0 and later Not supported

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 4.0 and later Not supported

LONGDESC = "Text"
The URL of a page that has a long description of the frame's contents.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

MARGINHEIGHT = Positive integer
The amount of space, in pixels, between the top and bottom of the inline frame's source page and the top and bottom edges of the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

MARGINWIDTH = Positive integer
The amount of space, in pixels, between the left and right sides of the inline frame's source page and the left and right edges of the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

NAME = "Text"
The name of the frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Notes:

  • The NAME attribute is what you reference when you use the TARGET attribute inside the <A> tag. This means that the linked page loads inside the named frame.

SCROLLING = "Yes/No"
Determines whether scroll bars appears inside the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Notes:

  • You can also set this attribute to "AUTO" (this is the default value) to let the browser decide whether scroll bars are necessary.

SRC = "Text"
The URL of the page that will appear inside the inline frame..

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported Not supported Not supported

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

VSPACE = Positive integer
The vertical space, in pixels, that is added to the top and bottom of the inline frame.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 3.0 and later Not supported

WIDTH = Positive integer
The inline frame's width, in pixels.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Example:
<IFRAME SRC="index.html" WIDTH=450 HEIGHT=55 ALIGN=LEFT>
Doh! Your browser doesn't support inline frames!
</IFRAME>
As you can see, text wraps around the inline frame, just as though it was an image.

How It Looks:
As you can see, text wraps around the inline frame, just as though it was an image.

| Index | Previous Tag: <I> | Next Tag: <ILAYER> |