A header is used on many websites and in general is the same globally
throughout the site. Now what happens when the header needs to be
changed? Well, by using an include fie for the header this is a simple
task.
There are many reasons one might have redundant code in the headers of
a web page. This will vary from certain meta tags to javascripts and
even some advertising code. An easy way to maintain this is with an
include file.
For the purpose of this demonstration we will assume that there is a
javascript used globally throughout the site that requires code in the
head tags.
To use an include in your head tags all you need to do is decide
which code and or html is used in all of your pages and then put that
in a page named head.htm. Place it in a directory specifically for
your include files named perhaps, include. It may look something like
this:
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script language="JavaScript">
var blah
function blahblah() {
stuff.blah
}
</script>
Now every time you wish to make a change to your head tags you only
need to open one page instead of them all. Simply open head.htm and
make your changes. All your pages are now updated.