frames
Frameset:
A framed document divides a window into multiple window. It is done through <frameset> …. </frameset> tags. It contains the following attributes:
Rows |
Divide the screen into multiple rows. The values can be of pixels, percentage. |
Cols |
Divide the screen into multiple columns. The values can be of pixels, percentage. |
Frame:
The division of rows and columns are achieved by using <frame> tag. It contains the following attributes:
src="url" | Indicates the url of the document to be loaded into the frame. |
MarginHeight="n" |
Specifies the amount of white space to be left at the top and bottom of the frame |
MarginWidth="n" |
Specifies the amount of white space to be left along the sides of the frame |
Name="name" | Gives the frame a unique name so it can be targeted by other documents |
Noresize | Disable the frames resizing capability |
Scrolling | Controls the apperance of horizontal and vertical scroll bars in a frame. The values are Yes/No/Auto |
Targeting frames:
This attribute specifies the name of a frame where a document is to be opened.
Syntax
target="<frame_name>"
Inline frames:
An inline frame is used to display a web page within a web page.
Syntax:
<iframe src="URL"></iframe>