A complete html document. Consists of the outer HTML tag with an embedded HEAD tag and BODY tag, both of which are available as public variables:
An instance of Head which represents the HEAD tag of the document.
An instance of Body which represents the BODY tag of the document.
All sequence and keyword arguments are passed to the BODY tag, except for the following special attributes:
A string representing the title of the document. This will cause a TITLE tag to be added to the contents of the HEAD tag.
def __init__(self, *parms, **kw):
def __str__(self):
Overrides Tag.__str__() so as to prefix the
return value with the special DOCTYPE tag.
Overrides Tag.writeOn() so as to prefix the
output with the special DOCTYPE tag.
writeOn(self, out)
def writeOn(self, out):