While this could also be done with other packages, Embperl has several features especially for HTML: dynamic tables, formfield-processing, escaping/unescaping and more.
Embperl is a server-side tool, which means it's browser-indpendent. It can run in various ways: Under mod_perl, as a cgi script, or offline. If you have apache-mod_perl, follow this link to try the examples that have been installed.
The documentation is also available on your web server.