ptg16476052
560 LESSON 20: Working with Frames and Linked Windows
Next, create a document called yellow.html (see Figure 20.3) by entering the following
code:
Input ▼
<!DOCTYPE html>
<html>
<head>
<title>Yellow Page</title>
</head>
<body style="background-color: #ffff33;">
<h1>Yellow Page</h1>
<p>This is the first target page. Its target is <b>yellow_page</b>.</p>
</body>
</html>
Output ▼
After saving yellow.html, create another document called blue.html (see Figure 20.4)
by entering the following code:
Input ▼
<!DOCTYPE html>
<html>
<head>
<title>Blue Page</title>
</head>
<body style="background-color: #99ccff;">
<h1>Blue Page</h1>
<p>This is the second target page. Its target is <b>blue_page</b>.</p>
</body>
</html>
FIGURE 20.3
yellow.html web
browser window
named yellow_
page.
▼
▼