I want to output two HTML documents, wrapped inside of an HTML document
Is it possible to do something like this with HTML?
<body>First page here</body>
<body>Second page here</body>
Not possible. Neither
frame is inline. The best for your scenario would be to extract the
body tag content, and insert it into a
div. CSS would be a problem, though - there'd have to be some processing on it so it would be restricted to just half the page. Something like this:
<html> <head> <title>Combined</title> </head> <body> <div id="page1"> First page here </div> <div id="page2"> Second page here </div> </body> </html>
#id, anything else
iframes is definitely easier; and if the server is well-configured, it probably doesn't even require a separate connection.
BTW: Your suggestion will probably render, but AFAIK it's non-standard (browsers guessing what you want, instead going by the specification, something browsers have gotten used to having to do); and there's still the problem of CSS.