When you read it aloud, it's "Aitch Tee Em El". The first sound is a vowel. So it should be "an HTML".