| You are here: NetStrider » Tutorials » HTMLRef » FRAMES » |
|
|
|||||
| <FRAME> | <FRAMESET> | <NOFRAMES> | |||
| Command Parameters | Example | Command Parameters | Example | Command Parameters | Example |
| Introduction | ||||
|
Framed documents consists of static frames defined by framesets.
Each frame contains its own HTML document which is loaded and displayed independently
of the documents displayed in any other frame. That is the unique capability of the framed
document. HTML code can be targeted to, loaded dynamically and displayed
independently in any defined frame without altering
the fundamental display characteristics of the underlying design of the document
frame structure or changing the contents of any other frame.
There are advantages and disadvantages to framed HTML documents.
Earlier versions (2.x and below) of all browsers are not capable of displaying framed documents so it is advisable to include a <BODY> HTML Document Segment following the frameset enclosed within the <NOFRAMES> </NOFRAMES> command tag pair. Browsers which are not frames capable will selectively ignore the frameset and load the code contained within the noframes HTML Document Segment. Many Internet users do not like framed documents because they are prone to display difficulties generally caused by poor coding. It is advisable to provide a means to escape to a non-framed alternative and a means to clear the existing frameset and replace it with a fresh one. Many HTML developers fail to provide these alternatives, which has probably helped to foster a general aversion to framed documents. Framed documents require considerably more effort to develop and maintain than non-framed documents. Their use should be restricted to applications in which the special features they offer are necessary. Some of the display functions of frames can be accomplished with tables. |
| <FRAME> Command | |||||||||
|
<FRAME
src="URL" command parameters>
Establishes, defines and loads a frame in a framed HTML document. The command tag is unpaired since a frame is an object. |
|||||||||
Primary Command Parameters:
|
|||||||||
Secondary Command Parameters:
|
|||||||||
Example:
|
| <FRAMESET> Command | |||
|
<FRAMESET
command parameters></FRAMESET>
Defines and contains a Framed HTML Document Segment in an HTML document consisting entirely and only of a frameset. A single frameset can define either columns or rows. To define both columns and rows within a framed document it is necessary to have at least two framesets, one defining the columns and one defining the rows. Only <FRAME> and other <FRAMESET> elements are permitted with a frameset. The frameset replaces the <BODY> HTML Document Segment and must be defined immediately following the <HEAD> HTML Document Segment. |
|||
Primary Command Parameters:
|
|||
Secondary Command Parameters:
|
|||
Example:
|
| <NOFRAMES> Command | |
|
<NOFRAMES> <BODY> Alternate Non-Framed HTML Code </BODY> </NOFRAMES> Provides a container for alternate non-framed HTML Code within a framed HTML Document. Browsers which are not frames capable will ignore all defined framesets and load the code contained within the defined Noframes Document Segment. This document segment should contain a normal HTML Document <BODY></BODY> Segment. The command requires no parameters. |
|
Example:
|
|
| Return to Section E:H |