"""Classes to generate HTML in Python by Pierre Quentel (From http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/366000) The HTMLTags module defines a class for all the valid HTML tags, written in uppercase letters. To create a piece of HTML, the general syntax is : t = TAG(innerHTML, key1=val1,key2=val2,...) so that "print t" results in : innerHTML For instance : print A('bar', href="foo") ==> bar To generate HTML attributes without value, give them the value True : print OPTION('foo',SELECTED=True,value=5) ==>