I learned HTML mainly as a self-taught, but some time later I did a 2-year course in computer science where I learned much more about HTML and also CSS and javascript, so it has been both obtaining an official degree and self-taught.
I would say that the most I learned was in the computer...