If you want the same content copied over multiple pages of your site, with HTML you'll need to manually copy and paste that content. But with Frames you can include snippets of code without any server scripts.
Frames can only include large page divisions, rather than small
- Write the HTML you want repeated and save it to a separate file.
I like to save my include files into a separate directory, usually "includes". I would save my copyright information in an include file like this:
- Create a second HTML document for the rest of the page that isn't an include.
- Open a new HTML document that is the file name you want to display in the URL.
- Create a framed page with your include file in one of the frames:
- Change the path and file names to reflect your file locations.
- Create a framed page for every page on your site, and use the same footer.html for the bottom frame.
- When the copyright information changes, edit the footer.html file. Once you've uploaded it, it will change on every page of your site.
- Frames don't work for small includes like images or text.
- Each frame must be a completely valid HTML document in itself
- Be careful using frames, some browsers don't like them and search engines don't either.