The default HTML-output generated by pandoc is polyglot HTML, i.e., it's both valid HTML and XML.
The `tidy` utility is tool that can generate pure HTML; it can also shed a few bytes by omitting optional tags. E.g.
pandoc --to=html -s … | tidy -q -ashtml -omit
#pandoc #html #html5 #xml #tidy