Specifications
FIGURE 5.2
TLA Consulting has a standard look and feel for all its Web pages.
Directly reusing the sections of HTML that are common to all pages is a much better approach
than cutting and pasting on tens, hundreds, or even thousands of pages. The source code for the
homepage (home.html) shown in Figure 5.2 is given in Listing 5.1.
LISTING 5.1 home.html—The HTML That Produces TLA Consulting’s Homepage
<html>
<head>
<title>TLA Consulting Pty Ltd</title>
<style>
h1 {color:white; font-size:24pt; text-align:center;
font-family:arial,sans-serif}
.menu {color:white; font-size:12pt; text-align:center;
font-family:arial,sans-serif; font-weight:bold}
td {background:black}
p {color:black; font-size:12pt; text-align:justify;
font-family:arial,sans-serif}
p.foot {color:white; font-size:9pt; text-align:center;
font-family:arial,sans-serif; font-weight:bold}
a:link,a:visited,a:active {color:white}
</style>
</head>
<body>
Using PHP
P
ART I
122
07 7842 CH05 3/6/01 3:35 PM Page 122