Thursday, February 19, 2009

Frame tag

The frame tag is used to load different documents into each unique section that is been defined after the browser screen has been divided into rows and columns using frameset tag.
Note: Frame tag does not have any closing tag.
Attributes of Frame tag :
src: Specifies the url of the document to be loaded into the frame.

MarginWidth: Specifies the amount of space to be left along the sides of the frame.

MarginHeight: Specifies the amount of space to be left at the top and bottom of the frame.

Name: Used to give a unique name for the frame. The name must begin with an alphanumeric character.

NoResize: Disables the resizing capability of the frame.

Scrolling: This is used to decide whether to have scrollbars (Horizontal , Vertical) in a frame. This possibly take 3 values Yes , No or Auto.

Example:
Frameset rows="50%,50%"
Frame src="frame1src.html"
Frame src="frame2src.html"
/Frameset

No comments:

Post a Comment