A variety of methods exist to generate dynamic content on the web server side:
CGI (Common Gateway Interface) Scripts, embedded PHP (Hypertext Preprocessor) and embedded JSP (JavaScript)
The following is an example of embedded PHP: HTML page with embedded PHP
The following is an example of JavaScript: HTML page with JavaScript