Actually, HTML is a scripting language which programmatically creates content. The proof is that you can embed <script>document.write(...)</script> anywhere and the content will be written after the script itself, not at the end of the loaded document. It means that the above is a command.
Plus, HTML support different syntaxes for attributes, entities, space, so really HTML is a script language (albeit not turing complete).