What is the difference between HTML language, HTML syntax, XML syntax, and DOM?
Channel: innovati
Date: 19/09/2020

Explaining the difference between the HTML language and its three distinct representations:

- DOM is the in-memory representation of the document, with all its nodes and elements in a tree structure

- HTML syntax is a way to express documents in HTML language that is unique to HTML alone

- XML syntax is a way to express documents in HTML language using standard XML syntax

Bonus points: “XHTML” as a separate language from HTML language is dead and obsolete.

Extra bonus points: The W3C does not make HTML or DOM—the group working on HTML and DOM specifications is the WHATWG.