LESSON 39: FLOATING FRAMES
- Study the index cards on Floating Frames. I've included a hard copy of these
index cards, for your convenience. The Weasel book is more up-to-date than this (old) lesson, so be sure to read
the pages in the Weasel book for the true scoop about current support for floating frames!
- Be sure that you can answer all the following questions, which are fair game for quizzes and
tests.
- What is another name for a "floating frame"?
- What is another name for an "inline frame"?
- What is a "floating frame"?
- What is an "inline frame"?
- What are the two main advantages of a floating frame?
- What is the difference between the attributes "HSPACE" and "MARGINWIDTH" for floating frames?
- What is the default alignment for floating frames?
- What does "scrolling=auto" mean, for floating frames?
- By default, does a frame border appear on floating frames, or not?
- How can you turn a frame border off on a floating frame?
- Do worksheet item (W39.2) in
Floating Frames
to practice coding floating frames.
- Read pages 242 (from "Targeting Frames") to page 246 (up to "Frame Design Tips and Tricks").
Be sure that you can answer all the following questions, which are fair game for quizzes and
tests:
- By default, where does a linked document load?
- Suppose you have a framed document, with a table of contents in one frame, and a second frame
that will display the item selected from the table of contents. In this situation, do you want the
linked document to load in the same window as the link?
- If you want to load a linked page into a particular frame, what is the first thing that you must do?
- How do you assign a name to a frame?
- Write the code that would assign the name "main" to a frame that contains the file "main.html".
- Write the code for an anchor tag that would load the file "new.html" into a frame that has been named "main".
- What happens if a link contains a target name that does not exist in the frameset?
- How can you get a "pop-up window"?
- Suppose you want all the links in a given document to load in the same frame, named "main". Instead of
setting the target in every single link in the document, what can you do? (Write the needed code.)
- Suppose a target in an individual link says one thing, and the target set in the
<BASE>
tag in the head of the document says another thing. Who wins?
- There are four standard target names for special redirection actions, and they all begin with a special
character, to make them easy to recognize. What is this special character?
- What are the four standard target names for special redirection actions? (list them)
- What will happen if you name a frame with a name that begins with an underscore?
- What does
target="_blank"
do?
- Write the code that will load "http://google.com" into a new (pop-up) window. Use the appropriate
reserved target name.
- What does
target="_parent"
do?
- What is meant by a "parent frame"?
- What does
target="_top"
do?
- What browser introduced inline frames?
- What is the tag name for an inline frame?
- Are inline frames supported by any version of Netscape Navigator?
- Is
<iframe>
a part of the HTML 4.01 specifications?
- Placing an inline frame is similar to doing what familiar operation?
- Write the code for an inline frame that loads the file "scrolly.html" in a frame with height 100 pixels
and width 200 pixels.
- Is IFRAME a stand-alone tag, or a container tag?
- What happens to text that goes inside an IFRAME container?
- Can
align, hspace, and vspace
be used with inline frames, the same way that they are
used with images?
THE QUIZ OVER THIS LESSON WILL CONSIST OF:
- (20 pts) Questions from the index cards and reading (see below).
There will be 27 randomly-chosen questions; you will cross off 7 questions.
The remaining 20 questions are worth 1 point each.
- (25 pts total) CODING PART:
Write all the code needed to produce a floating frame. I should be able to specify any desired attribute
values. For example, I could say: "the height should be half the window, the width should be 100 pixels,
it should be aligned along the right margin of the page," etc.
Prepare for the quiz over this section by practicing below.
Questions are asked in random order.
You can generate a printable quiz with solutions.