Forum Moderators: open
The simplest way is with server side includes:
<html><head><title>My Page</title></head>
<body>
<!--#include file="header.txt" -->
Page content
</body>
</html>
If you store the header in a different directory, use
<!--#include virtual="/data/header.txt" -->
In either case,
1) SSI's MUST be enabled on your server. Refer to your ISP to find out (or just try it, if it works, great.)
2) The file MUST be named whith an .shtml extension to tell the server to parse for SSI directives (myfile.shtml)
3) The space preceding --> is REQUIRED or it won't work.
There are other ways, via Javascript or dynamic languages such as perl, php, asp, etc., that essentially do the same thing, but this is the simplest.
Welcome to Webmaster World! :-)