HTML and CSS Reference
In-Depth Information
<p><a href=”blue.html” target=”blue_page”>
Open
</a>
the Blue Page in a new
window.
</p>
<p><a href=”green.html” target=”yellow_page”>
Replace
</a>
the yellow page
with the Green Page.
</p>
</body>
</html>
.
Output
FIGURE 17.3
The parent window
(the red page).
17
This creates a light-red page that links to the other three pages. Save this HTML source
as
parent.html
.
Next, create a document called
yellow.html
(see Figure 17.4) by entering the following
code:
Input
▼
<!DOCTYPE html>
<html>
<head>
<title>
Yellow Page
</title>
<style type=”text/css” media=”screen”>
body {
background-color: #FFFF33;
}
</style>
</head>
<body>
<h1>
Yellow Page
</h1>
<p>
This is the first target page. Its target is
<b>
yellow_page
</b>
.
</p>
</body>
</html>