IFRAME (Floating Frame) TAG and ATTRIBUTES

<IFRAME></IFRAME>

This element indicates a floating frame, an independently controllable content region that can be embedded in a page.


ATTRIBUTES

ALIGN = "BOTTOM | LEFT | MIDLE | RIGHT | TOP”
BORDER = "pixels”
BORDERCOLOR = "color name | #RRGGBB”
CLASS = "class name(s)"
FRAMEBORDER = "0 | 1”
FRAMESPACING = "pixels"
HEIGHT = "percentage | pixels"
MARGINHEIGHT = "pixels”
MARGINWIDTH = "pixels”
NAME = "Frame name”
NORESIZE SCROLLING = "AUTO | NO | YES"
SRC = "URL of frame contents"
STYLE = "style information"
WIDTH = "percentage | pixels"

EVENTS

NONE


ALIGN  This attribute controls the horizontal alignment of the floating frame with respect to the page. The default is LEFT.

BORDER  This attibute specifies the thickness of the border in pixels.

BORDERCOLOR  This attibute specifies the color of the border.

CLASS  See Cascading Style Sheets (CSS) Information.

FRAMEBORDER  This attribute determines whether the frame is surrounded by an outlined three-dimensional border. The HTML specification prefers the use of 1 for the frame border on and 0 for off; most browsers also acknowledge the used of NO and YES.

FRAMESPACING  This attribute creates additional space between the frames.

HEIGHT  This attribute sets the floating frame's height in pixels.

MARGINHEIGHT  This attribute sets the height in pixels between the frame’s contents and its top and bottom borders.

MARGINWIDTH  This attribute sets the width in pixels between the frame’s contents and its left and right borders.

NAME  This attribute assigns the frame a name so that it can be the target destination of hyperlinks as well as be a possible candidate for manipulation via a script.

NORESIZE  This attribute overrides the default ability to resize frames and gives the frame a fixed size.

SCROLLING  This attribute determines if the frame has scroll bars. A YES value forces scroll bars, a NO value prohibits them, and an AUTO value lets the browser decide. When not specified, the default value of AUTO is used. Authors are recommended to leave the value as AUTO. If you turn off scrolling and the contents end up being too large for the frame (due to rendering differences, window size, etc.), the user will not be able to scroll to see the rest of the contents. If you turn scrolling on and the contents all fit in the frame, the scroll bars will needlessly consume screen space. With the AUTO value, scroll bars appear only when needed.

SRC  This attribute contains the URL of the contents to be displayed in the frame. If absent, nothing will be loaded in the frame.

STYLE  See Cascading Style Sheets (CSS) information.

WIDTH  This attribute sets the floating frame's width in pixels.

Back to Top