HTML FRAME TAGS


 

 

Frame tags break up the browser window into multiple regions called frames. Each frame can contain a distinct HTML document. This allows to multiple documents to be displayed at the same time.

 

Frame tags

TAG

FUNCTION

<FRAMESET>

(Container tag)

Attributes – 2

Divides the browser window into frames.

<FRAME>

(Standalone tag)

Attributes – 8

Places content into a frame

<NOFRAMES>

(Container tag)

Attributes – 0

Provides an alternative layout for browsers that cannot process frames

<IFRAME>

Container tags)

Attributes –

Places a floating frame on a page. (Floating frames – frames that can be placed like images)

 

 

Tag: <FRAMESET>

Attribute

Description and values

ROWS or COLS (but not both at the same time.)

Specifies how many rows or columns the browser window is broken into. Sizes can be in pixels, percentages of screen depth, or relative to the amount of available space

 

Tag: <FRAME>

Attribute

Description and values

FRAMEBORDER

Sets Frameborder. (Values: 0 | 1)

LONGDESC

URL of a resource that contains a more detailed description of the frame's content

MARGINHEIGHT

Specifies the size (in pixels) of the top margin of the frame

MARGINWIDTH

Specifies the size (in pixels) of the left margin of the frame

NAME

Gives the frame a unique name so it can be targeted by other tags (such as <A>, <FORM> and <AREA>).

NORESIZE

Suppresses the user's ability to drag and drop a frame border in a new location

SCROLLING

Controls the presence of scrollbars on the frame (Value: YES | NO)

SRC

Required attribute. Tells the browser the URL of the HTML file to load into the frame

 

Tag: <IFRAME>

Attribute

Description and values

ALIGN

Controls how the floating frame is aligned (Value: TOP | MIDDLE | BOTTOM | LEFT | RIGHT )

FRAMEBORDER

Sets the Frame border (Value: 0 | 1)

HEIGHT

Specifies the height of the floating frame in pixels

LONGDESC

URL of a resource that contains more detail about the contents of the floating frame

MARGINHEIGHT

Specifies the size (in pixels) of the top margin of the floating frame

MARGINWIDTH

Specifies the size (in pixels) of the left margin of the floating frame

NAME

Gives the floating frame a unique name so it can be targeted by other tags (such as <A>, <FORM>, and <AREA>).

SCROLLING

Controls the presence of scrollbars on the floating frame (Value: YES | NO | AUTO)

SRC

REQUIRED ATTRIBUTE. URL of the HTML file to load into the floating frame

WIDTH

Specifies the width of the floating frame in pixels

 

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu