createHTMLDocument

fun createHTMLDocument(title: String = definedExternally): Document(source)

MDN Reference