DEV Community

Discussion on: HTML is a programming language

Collapse
 
narasimha1997 profile image
Narasimha Prasanna HN

Okay, if HTML is a programming language, can you add two numbers in HTML? Without JavaScript??? No right??

If HTML is a programming language, then what was the need for JavaScript? If your logic is correct, markup languages like Markdown, LaTex will be called "Programming Languages".
Also, the same with JSON, YAML, TOML etc, are they programming languages?? No right?? They are just ways of specifying information which are parsed by programming languages. HTML is also like a specification language, which is parsed by a parser embedded in the browser or whatever tool.

Again, another point, The basic property of any programming language is to throw syntax error or atleast a warning when something is not right. But it's missing all in Markup languages, that means, they are designed not be programming languages. The purpose is different.