Generate HTML Runtime

Someone help me with this. I’m trying to generate an HTML page at runtime and display it on a HTMLViewer. How do I do this?

Create the HTML in a string. Show it in an HTMLViewer using HTMLViewer.LoadPage.

Thanks for your answer …
That part I understand, but how do I get the HTML General, I load a specified page, not if I explain.
Example page to generate divide it in 2 frame and in each of them, load a different page in real time.