HTML and CSS Reference
In-Depth Information
FIGURE 17.7
You must create a
separate HTML
document for each
frame.
HTML FILE
Frame Definition
HTML FILE
Frame 2 Contents
2
1
3
4
17
Frame 1 Contents
Frame 4 Contents
HTML FILE
HTML FILE
Frame 3 Contents
HTML FILE
The <frameset> Tag
To create a frameset document, you begin with the <frameset> tag. When used in an
HTML document, the <frameset> tag replaces the <body> tag, as shown in the following
code:
<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<frameset>
.. your frameset goes here ...
</frameset>
</html>
It's important that you understand upfront how a frameset document differs from a nor-
mal HTML document. If you include a <frameset> tag in an HTML document, you can-
not include a <body> tag also. The two tags are mutually exclusive. In addition, no other
formatting tags, hyperlinks, or document text should be included in a frameset document.
(The exception to this is the <noframes> tag, which you learn about later in this lesson in
 
 
Search WWH ::




Custom Search