Frames Cheatsheet - 02/18/01 Frame Tags
<frameset> ..</frameset> Defines a collection of frames in an HTML page. Values
set in the frameset tag should be used as a default value to override values
set in the frame tag. For best compliance, don’t set conflicting values
in the frameset and frame tags. If a frame needs a specific setting,
it’s better to NOT specify it in the frameset tag and specify it in the
frame tag.
<frame> ..</frame>Defines a frame within a frameset tag
<noframes> ../<noframes> Specifies content to be displayed to browsers that cannot view frames. This is largely outdated since most browsers DO view frames. However, there still are simple text browsers that cannot read content within frames. The noframes tags are designed to either prompt a message to the browser OR re-direct the user to a non-frames enabled version of the site. See the Etude 3 guidesheet for an example of using noframes content.
Using the TARGET attribute:
Target=_blank/_self/_parent/
_blank opens the link in a new browser window _self opens the link
in the same window(frame) This is the natural default of ALL hyperlinks _parent
opens the link in the “parent” frame (or one step up in the frameset) Example
<a href src=http://www.yahoo.com TARGET=”_blank”>
<base>
Using this tag will set defaults for the entire page. Once set in the header
of the HTML document the TARGET tag for each hyperlink isn't needed. Usage:
<HEAD>
<Base Target="target frame">
</HEAD>
You will need to note the name of the frames as you set them up in your HTML document. Replace "target frame" with the name of the frame it should open up in.
Frame Examples:
Download the sample HTML files