Server Side Includes
You probably noticed that the subpages you called up in the last section were… well, not particularly attractive. At the very least, they don't match the rest of the site. You need to get your interface onto each page. You could copy and paste the information. After all, you didn't do anything special with it, so it is appropriate for any of your subpages. But what if instead of 3 pages, you had 300 pages? Or 3000 pages? All of a sudden, copying and pasting doesn't make as much sense.
Instead, of copying and pasting, you can use a Server Side Include (SSI). An SSI is when the server takes information from one file and includes it as part of another file. For example, you can take all the HTML that makes up the top of your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access