In html, not really. You do have some options though.
If you use ".shtml", you can use a file include by adding the following to the page where you want it added:
<!--#include FILE="filename.html"-->
You can even make this a .txt file if you want. I recommend stripping the following tags out of the included file, thus keeping your html more clean, and not confusing the browsers and spiders: head, body, title, and their corresponding ending tags. The downfall to using .shtml's include function is the included file MUST be in the same directory as the shtml file. I am pretty sure there isn't a way to direct the include function to another directory.
I would recommend using php for this though. PHP has a better include function.
You can leave your html alone, but make the following changes to each page:
Change the file extension to .php.
Put the following code in wherever you want the contents of the included file:
PHP Code:
<? include("filename.txt"); ?>
If your file is in another directory, you can do either of the following:
- Put an @ sign before the word "include", so it would say @include, then put the url to the file, so it would look like this:
PHP Code:
<? @include("http://www.yoursite.com/includes/filename.txt"); ?>
A better option is to use the $DOCUMENT_ROOT function.
To use this, you simply replace the domain name with $DOCUMENT_ROOT . (the . should be there), and continue with the path to the file. So, I think it would look like this:
PHP Code:
<?
include($DOCUMENT_ROOT . "/includes/filename.txt"); ?>
Using the include function allows you to change every page where the included file is used, by simply changing the included file, and uploading it.