The DTD of HTML can be found in the specification documents. It defines the schema of a valid HTML page.
For instance