Note:Read-only property. Returns the document type. For HTML documents, the return value is null. Syntax: document.doctype