Including HTML in another HTML document
Sometimes, rather than linking to another document, it is helpful to include the contents of an HTML document in another HTML document. We recommend using the OBJECT element with the data attribute for this purpose.
For instance, the following line will include the contents of piece_to_include.html at the location where the OBJECT definition occurs.
Warning: file_to_include.html could not be included.
The contents of OBJECT must only be rendered if the file specified by the data attribute cannot be loaded.
The behavior of a user agent in cases where a file includes itself is not defined.
Careful file inclusions. Be careful if you attempt to include a section of an HTML document defined by an anchor. The entire document after the anchor definition will be included, and you might unwittingly include unwanted end tags (for elements such as BODY, HTML, etc.) in your document.
The IFRAME element may also be used to insert an inline frame containing text in an HTML document.