doc_kind
doc_kind ([doc])
This function returns a string indicating what “kind” of document is specified by doc. If the doc parameter is omitted, the current document is assumed. The possible return values are:
• sgml — indicates an SGML document.
• xml — indicates an XML document.
• html — indicates an HTML document.
• ascii — indicates an untagged ASCII document.