However, this doesn't work. As far as I've figured out, if it'd work the img (called in the header file) and the hr should be displayed in the xhtml file where I include header.shtml?
The <!--#include virtual --> instruction will load all of the content from the indicated file into the parent document. You need to structure your documents so that when the parent document and the header.shtml files are combined, there is only one instance of the content from the <!DOCTYPE> to the <body> tag. You can choose either one to hold that content, but not both. Good luck!
The <!--#include virtual --> instruction will load all of the content from the indicated file into the parent document. You need to structure your documents so that when the parent document and the header.shtml files are combined, there is only one instance of the content from the <!DOCTYPE> to the <body> tag. You can choose either one to hold that content, but not both. Good luck!
Thanks for the reply!
I deleted everything above the body tag, so my code is:
It doesn't matter which parts go into the parent document and the header.shtml document as long as you end up with a single, valid HTML document with only one set of start-up tags. Although, on a practical level, you really don't want to use a single common <head> section for all of the pages on your site. Tags like <title> and <meta> description need to be unique to each page.
In any case, to see what's wrong, load your page in your browser and select View->Source so you can see the resulting HTML document in its entirety. Look for duplicate and missing tags. Good luck!
Bookmarks