XML is a meta language. A meta language is a language that provides a syntax mechanism for creating other languages without constraining expression through a predefined grammar. XML is defined in the SGML doctype language. Adherence to the strict syntax requirements of XML is called well-formedness, which is a practice of precise accuracy to a stated set of requirements in an effort to achieve uniform processing of a document across various different applications and user agents.
SGML is a meta language like XML and is even the parent of XML. SGML offers a broad form for defining data in uses of syntax without providing a data typing convention. Unlike SGML XML features a rigid and extremely simplified syntax that is not open to confusion. XML also features data type definitions also unlike SGML. Elements in XML provide namespace scope in a lambda fashion, while SGML provides no support for namespaces.
Doctype is an SGML based language that uses a syntax completely unlike XML for defining markup language grammars and broad data type conventions to tell data elements apart from text.
XML Schema is an XML written language that allows language grammar definitions with precise structural form in addition to specific data typing conventions for elements, structures, and attributes. Languages written in Schema structurally self-aware, unlike SGML vocabularies, so that they know of their own internal requirements at any various point in the structure. Languages defined by schema are able to be immediately open to validation through reference to the Schema document, due to the structural self-awareness, while languages defined in Doctype require unrelated software with static definitions to order to perform validation.
HTML 1.0 was written in English text and is neither SGML or XML.
HTML 2 - 4 are written in SGML and feature SGML flexibilities, such as uppercase tags or start tags without a matching closing tag.
XHTML 1.0 is an SGML defined form of the HTML language with some extended requirements to gleam progressive compatibility towards XML syntax.
XHTML 1.1 is the HTML language defined in XML with XML well-formedness requirements.
HTML5, like HTML 1.0, is not defined using any meta language. It is written in English text and moves radically in opposition of the uniform requirements of an XML serialization. HTML5 appears to be created for usability and media delivery without regard for structure or language hierarchies.
XHTML5 claims to be the XML compatible form of HTML5. Work on this specification is either not publicly disclosed or has not begun. Completion of this specification is unlikely as HTML5 introduces features that distances this form of HTML from serialization more so than any of its predecessors thereby making XHTML5 in conflict with itself.