In my experience people that call HTML a programming language are generally new to coding and learning the basics. I don't see any reason to shoot it down, there are concepts learnt that will crossover.
Cause I’ve seen enough weird niche languages that I don’t know of any consistent delineation of “programming” language that makes sense. You can say html doesn’t have control structures, but declarative languages don’t have control structures. You can say it is for markup, but why isn’t that something a computer can be programmed to do? Also, tex is a Turing complete markup language. You can’t declare a variable in HTML, but you can’t exactly “declare” a variable in MIPS either. Isn’t the DOM just a bunch of named structures in memory? Isn’t that a variable? HTML can’t manipulate those by itself, but pure functional languages don’t have mutable memory references either.
It’s a language, it has a grammar. You tell the computer what to do with it. That’s a programming language in the broadest sense. When someone tells me a better (consistent) definition of programming I’m happy to use it.
101
u/Omnislash99999 Jun 01 '23
In my experience people that call HTML a programming language are generally new to coding and learning the basics. I don't see any reason to shoot it down, there are concepts learnt that will crossover.