The HTML specifications assume a working knowledge of SGML. The SGML standard
itself is not available online, but there's plenty of code to read if you're
a hacker, and a few introductory documents for everybody.