+ 5
Why HTML is not a programming language?
Why HTML is not a programming language?
23 Answers
+ 5
HTML is used for structural purposes on a web page, not functional ones. Programming languages have functional purposes. HTML, as a markup language doesn't really “do” anything in the sense that a programming language does. ... This is because HTML is not a programming language.
+ 22
Bibhash Ghosh
Hypertext Markup Language (HTML) is not a programming language because it does not contain control operators.
+ 16
It depends on your definition of a programming language.
Many people think of programming to exclusively apply to imperative programming. However, I contend that HTML is actually a declarative (domain specific) programming language.
See my reasoning in these other posts:
https://www.sololearn.com/post/418932/?ref=app
https://www.sololearn.com/post/141278/?ref=app
+ 11
please use search bar before
asking any question
https://www.sololearn.com/discuss/559144/?ref=app
https://www.sololearn.com/discuss/564585/?ref=app
https://www.sololearn.com/discuss/221895/?ref=app
https://www.sololearn.com/discuss/1165433/?ref=app
https://www.sololearn.com/discuss/947396/?ref=app
https://www.sololearn.com/discuss/1025445/?ref=app
https://www.sololearn.com/discuss/556163/?ref=app
https://www.sololearn.com/discuss/1281272/?ref=app
https://www.sololearn.com/discuss/24587/?ref=app
https://www.sololearn.com/discuss/24588/?ref=app
https://www.sololearn.com/discuss/2135507/?ref=app
https://www.sololearn.com/discuss/243835/?ref=app
https://www.sololearn.com/discuss/570/?ref=app
https://www.sololearn.com/discuss/905462/?ref=app
https://www.sololearn.com/discuss/1358251/?ref=app
+ 9
This is debatable, but markup language is not considered to be a programming language simply because the term is not well-defined. A markup language is used to control the presentation of the data, like representing structured data. For example, HTML is used to specify that some part of a document is a title, another part is a list, another part is heading etc. So, based off of that, a markup language is used to describe the data and the formatting in a textual format. There is a general rule, that a markup. language will not describe a process or an algorithm (like programming language does) but is just pure data.
+ 4
narayanaprasad The article is mistakenly limiting the scope of programming languages to only one subset that resembles that of imperative languages.
However, programming languages are a superset of many paradigms.
HTML is a declarative domain specific programming language. This doesn't mean it's general purpose, imperative, or turing complete.
HTML, in its limited form as a programming language, instructs the browser to load the DOM such that it reflects the hierarchical tree structure of nodes in memory.
HTML declares what to load, not how to do it.
----
I find the debate in the comments link quite interesting as I completely agree with the computer scientist who explains why HTML is a programming language.
https://ischool.syr.edu/infospace/2012/04/05/why-html-is-not-a-programming-language/#comment-4216
I highly encourage people to read the back and forth of that thread. I will try to read through to the end this weekend. But, that guy and I share the same thoughts on this.
+ 3
It is a declarative programming language imo.
This means that unlike other imperative languages. It defines what to do and not how to do it.
https://www.smashingmagazine.com/2014/07/declarative-programming/
+ 3
You may find answer in :-
1) https://ischool.syr.edu/infospace/2012/04/05/why-html-is-not-a-programming-language/
2) Hypertext Markup Language(HTML), is not a programming language, because it does not contain, control operators.
+ 3
David Caroll: Thank You for update.
+ 2
It is not a programming language because it does not have operator s and is a web creation
+ 2
I suggest you all to check the link given by David Carroll .
I believe HTML is a markup language which is a subset of programming languages. In order words it is domain-specific (used just for markup). Other domain-specific languages include MATLAB and SQL. Both MATLAB and SQL are in the TIOBE index of programming languages.
Also some people in this thread argue that HTML does not perform logic. From the Oxford dictionary. Logic as used in computing is
```
a system or set of principles underlying the arrangements of elements in a computer or electronic device so as to perform a specified task
```
Do you still think HTML does not perform logic? If so I advise you complete the HTML tutorial before coming here
+ 1
html is technically not a programming language because it's not scripted
+ 1
HTML, CSS, JS are languages that are used for creating websites, So that HTML is called Hyper Text Markup Language, but if u r looking for programming language u can use C, C++, C#, Python3, and more, Thanks For Question!
0
Think about Html like the Skeleton, Css the skin and javascript the muscles. Html is just a xml standardized dataformat which the browsers can interpret and generate a domtree out of it. Programming languages are capable of actual doing something. Saying i code in html is like saying i write json programs , which is just a really good format for data structure, but nothing more on its own.
Better example for nonexperienced users. Excelsheets(file) are saved data. Excel(-parser) can read it. Then Excel(program) interprets it and shows the interpreted file. If you modify the file inside of excel and save it, the file gets modified.
The same priciple applies if you append/modify/.. a html element with javascript.
0
Cause it was replaced by an app real languages aren't
0
Because, we don't do problems, when we write on HTML.
0
Hypertext Markup Language (HTML) is not a programming language because it does not contain control operators. As such, one cannot encode logical
0
Es un lenguaje de etiquetas
0
Es un interpretador de etiquetas
0
It's used for web page creation