HTML and CSS Reference
In-Depth Information
This example defines a frameset with three horizontal frames of equal height (see Figure
17.10). The contents of document1.html are displayed in the first frame, the contents of
document2.html in the second frame, and the contents of document3.html in the third
frame.
.
Output
FIGURE 17.10
You use the
<frame> tag
to define the
contents of each
frame.
17
TIP
When you're creating frameset documents, you might find it help-
ful to indent the <frame> tags so that they're separated from the
<frameset> tags in your HTML document. This has no effect on
the appearance of the resulting web pages, but it does tend to
make the HTML source easier to read.
The <noframes> Tag
What happens if a browser that doesn't support frames navigates to a frameset docu-
ment? Nothing. You get a blank page. Fortunately, there's a way around this problem.
A special tag block called <noframes> enables you to include additional HTML code as
part of the frameset document. The code you enclose within the <noframes> element
isn't displayed in frames-compatible browsers, but it's displayed in browsers that don't
support frames. The <noframes> tag takes the following form:
<!DOCTYPE html>
<html>
<head>
<title> Frameset with No Frames Content </title>
</head>
 
 
Search WWH ::




Custom Search