Dear Jess,
One way to get exactly the same stuff on multiple pages is to use the PHP include() function.
That "stuff" could be a page header, a page footer, a site navigation menu in Javascript etc.
Background explanation:
Whenever a browser demands a page, your hosting service examines the file name for that page. The host transfers files ending in ".htm" or ".html" to the browser directly, without even looking inside them.
However, for any page file ending in ".php," the host opens the file and looks for embedded scripting written in the PHP language. The host does whatever the script requires, perhaps modifying the HTML code, then sends the result along to the browser.
The browser has no idea that the host has done this. It simply renders whatever it's sent.
You can take advantage of this at the cost of a little complication. Here is the outline:
0) Think over how you can reverse any changes that you might end up not liking. A good way to do this is to simply backup the entire site to a new folder before you touch anything.
1) Rename files that are to have PHP scripts embedded in them. For instance, "index.html" becomes "index.php."
2) Identify the stuff that you'd like included on every page in your Web site. For example, suppose you use an unordered list for navigation among three pages. The HTML might look like this:
<ul id="nav_list">
<li>
<a href="index.php">Home Page</a>
</li>
<li>
<a href="another_page.php">Another Page</a>
</li>
<li>
<a href="yet_another_page.php">Yet Another Page</a>
</li>
</ul>
3) Create a new file. Put the above navigation stuff into it. Close it. Name it something like "JessInclude.html."
4) Remove the navigation stuff from each page. In its place, wherever you would like the stuff to appear in each page, type this:
<?php
include('JessInclude.html');
?>
You may have to provide a more elaborate path to the file in order to help the include() find it, such as
<?php
include($_SERVER['DOCUMENT_ROOT'].'/JessInclude.html');
?>
5) Note the id="nav_list" inside the <ul> tag shown in the first code sample. You can refer to this name in your CSS in order to style the navigation stuff identically no matter where it's included.
Whenever you want to add a page to your site, change a page's file name etc., you make the change just once in "JessInclude.html" and the update appears across your site auto-magically.
If you got this to work, congratulations: You are now a server-side PHP programmer! You could use the same concepts to do great things, like tap a database for product information at the request of your site's user.
Now here is the downside. The CC HTML Editor does not understand PHP, and neither does the browser on your PC. So you can't preview the effect of the include() using these tools by themselves. You must either view your site on your hosting service or install a local-hosting package like Wampserver or XAMPP on your development PC.
Alternatively, you might look into CoffeeCup's S-Drive service, which cuts through some of the complication.
halfnium -AT- alum.mit.edu
Yes, I looked just like that in 1962.