HTML is an extension of plain texts. It is a note to browsers about a document’s data, thereby helping browsers present webpages accurately.
The difference between document, data, and code is that a document holds data. Data is a page’s content. And code is a computer’s language.