Given the source of an HTML document, identify the document type