htmlDocument (function)

htmlDocument(contentType=False, content='', attachmentSaveAsName=False)[source]

The doctype and html tags

Key Arguments

  • content – the head and body of the html page

  • attachmentSaveAsName – save file as this name instead of opening in browser

Return

  • contentType – the content type [ “text/html” ]

  • doctype – the HTML5 doctype