I don't remember the syntax for HTML forms. Inevitably, when I'm starting a project, I need to go look up the basics. Then, I usually reuse the template that I come up with and don't look back. Here are some notes on those basics...
there is the python module webhelpers that will help in generating form markup, if you like. | http://pypi.python.org/pypi/WebHelpers | http://webhelpers.groovie.org/
This also turns out to be a good reference for common html tags, even if you don't want to generate them: | http://webhelpers.groovie.org/modules/html/tags.html