Markup Language vs Programming Language
People think HTML is a programming language, and it is not. A markup language only labels parts of a text, like this is a heading or this is a link. It cannot add numbers, repeat a step or make a choice. A programming language can do all three. On a web page, HTML says what is there and JavaScript makes it do things.
Markup Language
Tags on parts of a text, like a title or a link. An app reads the tags to show it.
A markup language adds labels to plain text to say what each part is. The labels are often called tags. A tag might say this is a heading, a link or a list. A browser or app reads the tags and shows the text the right way. A markup language describes things, but it cannot do sums or make choices like a programming language.
Programming Language
A set of words and rules. You use it to tell a computer what to do.
A programming language is a set of words and rules for telling a computer what to do. People write in it. Then a tool turns that into steps the machine can run. Each language has its own syntax and its own strengths. Python is easy to read, C is close to the machine, and JavaScript runs in every browser. Hundreds exist, but a few dozen do most of the work.
In one line
- Markup Language
- Tags on parts of a text, like a title or a link. An app reads the tags to show it.
- Programming Language
- A set of words and rules. You use it to tell a computer what to do.