HTML, who knows it? The web server, the app server or the browser? Have you ever thought of this? Web server knows nothing. App server only knows Java, C# or other dynamic language code. That is browser who knows the HTML. So what we do is just to generate the HTML formated stream and send it to browser.