HTML and CSS Reference
In-Depth Information
TABLE 17.1
Continued
Attribute
Value
Description
Setting the value of scrolling to no dis-
ables the use of scrollbars for the current
frame. (Note that if you do this but the docu-
ment contains more text than can fit inside
the frame, users can't scroll the additional
text into view.)
scrolling
no
If you set scrolling to yes , scrollbars are
included in the frame even if they aren't
required.
scrolling
yes
Specifies the URL of the initial source docu-
ment that appears in a frame when the
frameset first opens in the browser.
src
URL
17
Creating Complex Framesets
The framesets you've learned about so far are the most basic types of frames that can be
displayed. In day-to-day use, however, you'll rarely use these basic frame designs. On all
but the simplest sites, you'll most likely want to use more complex framesets.
Therefore, to help you understand the possible combinations of frames, links, images,
and documents that can be used by a website, this section explores complex framesets.
Task: Exercise 17.2: Creating the Content Pages for Your
Frameset
Most commonly, framesets are used to keep navigational elements in view as the user
scrolls through the contents of the document. Each time the visitor clicks a link in the
left navigation frame, the content in the main frame displays the selected page. The (very
silly) frameset that you'll create in this exercise demonstrates this technique. Although
it's not a practical example, it's simple, fun, and demonstrates the same techniques you
would use for a navigation bar.
When you design a web page that uses frames, you normally design the frameset before
you go through all the trouble of designing the content that goes into it. That's because
you'll want to know how big your frames are going to be before you start designing
graphics and other page content to put into them.
 
 
 
Search WWH ::




Custom Search