Server-side Starter Tutorial:Includes - Part 2 of 7
Our prototypical HTML page can be broken down as three parts:
the top
<html>
<head>
<title>The Page</title>
</head>
<body bgcolor="white">
the content
<!-- content begins -->
Hello World!
<!-- content ends -->
the bottom
</body>
<html>
So if we could save 'the top' and 'the bottom' separately from the content, each of our site's page would look very similar except for the actual content:
the same top
different page content
the same bottom
And then when a visitor's browser requests that page, we want the server to .... include what we defined as 'top', follow with the page's specific content, and then include what we defined as 'bottom'.