Username checks out. It's not the same: HTML is interpreted and often modified on the fly (with JavaScript), with the source being a click away, but it's still just HTML. On the other hand Latex documents are compiled into other formats like PDF that are distributed, instead of the Latex source.
- The compilation means that there's at least a check for syntactic validity before any old crap is published.
- JS-based HTML can be fully dynamic to the extent that there's no sense of an underlying document at all. There are times when this is useful. That is an exceedingly small minority of the cases in which it is used. The fact that it's often preferable to rerender an HTML document as PDF, simply for readability, let alone archival, should speak volumes.