I have many separate HTML files. Now I want to combine them in a single window. How to do that?
Before you really commit to using frames in your design, I would read why frames are evil. If you still want to use them after that, at least you're informed.
Here are all the tags that you'll need for using frames within your pages:
Tag Description
<frameset> Defines a set of frames
<frame> Defines a sub window (a frame)
<noframes> Defines a noframe section for browsers that do not handle frames
<iframe> Defines an inline sub window (frame)
For more information and examples on how to use these tags, read here or here.
That depends on what do you want to achieve.
In most cases, the best way to do that is using some kind of server-side scripting or SSI, concatenating those files on server-side and returning a single, combined HTML file.
If you have to combine them client-side, you first should check whether <object/>
elements suits your needs (especially take a look at ‘Notes on embedded documents’).
If you need more advanced behavior, you probably would need to use frames (either full <frameset/>
or floating <iframe/>
) but note that this module might be considered unadvisable and thus it was removed from HTML4 Strict and XHTML.