DTD generator
for HTML5-based document types

Highly experimental




(enables ID uniqueness checking)

Result

The text should appear as selected below, so you should be able to just copy it (with Ctrl+C or equivalent) and paste it in a file. Then use a doctype declaration of the form
<!DOCTYPE html system "absurl">
where absurl is the absolute URL (starting with http://) of the DTD.


Known issues

  • The W3C Markup Validator cannot usually handle DTDs generated by this utility, due to its internal limitations (on GRPCNT). Use the WDG Validator instead.
  • In this version, attributes declared obsolete in HTML5 are included.
  • Obsolete enumerated values of attributes are not included.
<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin1//EN//HTML" "HTMLlat1.ent"> %HTMLlat1; <!ENTITY % HTMLsymbol PUBLIC "-//W3C//ENTITIES Symbols//EN//HTML" "HTMLsymbol.ent"> %HTMLsymbol; <!ENTITY % HTMLspecial PUBLIC "-//W3C//ENTITIES Special//EN//HTML" "HTMLspecial.ent"> %HTMLspecial; <!-- Added HTML5 named entities *not* included. --> <!ENTITY % global " accesskey CDATA #IMPLIED class CDATA #IMPLIED contenteditable (true | false) #IMPLIED contextmenu IDREF #IMPLIED dir (ltr | rtl | auto) #IMPLIED draggable (true | false) #IMPLIED dropzone NAMES #IMPLIED hidden (hidden) #IMPLIED id ID #IMPLIED itemid CDATA #IMPLIED itemprop CDATA #IMPLIED itemref IDREFS #IMPLIED itemscope (itemscope) #IMPLIED itemtype CDATA #IMPLIED lang NAME #IMPLIED spellcheck (true | false) #IMPLIED style CDATA #IMPLIED tabindex CDATA #IMPLIED title CDATA #IMPLIED translate (yes | no) #IMPLIED onabort CDATA #IMPLIED onblur CDATA #IMPLIED oncanplay CDATA #IMPLIED oncanplaythrough CDATA #IMPLIED onchange CDATA #IMPLIED onclick CDATA #IMPLIED oncontextmenu CDATA #IMPLIED oncuechange CDATA #IMPLIED ondblclick CDATA #IMPLIED ondrag CDATA #IMPLIED ondragend CDATA #IMPLIED ondragenter CDATA #IMPLIED ondragleave CDATA #IMPLIED ondragover CDATA #IMPLIED ondragstart CDATA #IMPLIED ondrop CDATA #IMPLIED ondurationchange CDATA #IMPLIED onemptied CDATA #IMPLIED onended CDATA #IMPLIED onerror CDATA #IMPLIED onfocus CDATA #IMPLIED oninput CDATA #IMPLIED oninvalid CDATA #IMPLIED onkeydown CDATA #IMPLIED onkeypress CDATA #IMPLIED onkeyup CDATA #IMPLIED onload CDATA #IMPLIED onloadeddata CDATA #IMPLIED onloadedmetadata CDATA #IMPLIED onloadstart CDATA #IMPLIED onmousedown CDATA #IMPLIED onmousemove CDATA #IMPLIED onmouseout CDATA #IMPLIED onmouseover CDATA #IMPLIED onmouseup CDATA #IMPLIED onmousewheel CDATA #IMPLIED onpause CDATA #IMPLIED onplay CDATA #IMPLIED onplaying CDATA #IMPLIED onprogress CDATA #IMPLIED onratechange CDATA #IMPLIED onreset CDATA #IMPLIED onscroll CDATA #IMPLIED onseeked CDATA #IMPLIED onseeking CDATA #IMPLIED onselect CDATA #IMPLIED onshow CDATA #IMPLIED onstalled CDATA #IMPLIED onsubmit CDATA #IMPLIED onsuspend CDATA #IMPLIED ontimeupdate CDATA #IMPLIED onvolumechange CDATA #IMPLIED onwaiting CDATA #IMPLIED ">