I\'m looking for a machine-readable version of the HTML5 specs, akin to a DTD, although any format would do as long as it\'s parsable.
The HTML5 specs don\'t seem to
Since 2014-10-28 the HTML5 is a recommendation (!)... But this question is not obsolete (the validators now are more complex tham simple DTD).
there are no simple parser, as @ruediste clues show... Today, perhaps the best parser is at https://validator.nu/ ... so,