DTD in more details / 1

DTD declaration is placed immediately before the root element!

  • <!DOCTYPE root-elt-name External-ID [ internal part of DTD ]>

Internal or external part (internal or external subset) might or might not be present, or both can be present.