Not possible with pure HTML (except if you go with the tacky framesets which are usually really frowned upon in web development). With JS, you could add the pieces in, but that's dodgy and will not work correctly at all for anyone who opts out for scripts or such, and thus not recommended. Depending on the software on your server, there are ways, though. If you have PHP in place, you can add files with the include function (and its variants):
PHP Code:
<?PHP
include("src/header.html"); // includes src/header.html always; will throw a warning if that fails
include_once("src/header.html"); // includes src/header.html if it hasn't been included before on this load; will throw a warning if that fails
require("src/header.html"); // includes src/header.html always; will throw a fatal error if that fails
require_once("src/header.html"); // includes src/header.html if it hasn't been included before on this load; will throw a fatal error if that fails
?>
ASP has a similar structure:
Code:
<!-- #include file ="src/header.html" -->
Perl, other frameworks like Ruby on Rails and dynamic pages you use via CGI-BIN that are in fact executables running server-side should have their own ways of including text (and code) from other files, but I'm not familiar with those (not that I'd be with ASP either, just happened to know).
Bookmarks