A programming language is a type of language used to create programs that can be run on a computer. These languages were designed to be used by developers to instruct a computer to perform specific tasks. Programming languages are usually used to create software applications such as web applications or mobile apps.
On the other hand, a markup language is a type of language used to annotate text to define its structure and format. Markup languages are not run by a computer, but are used to instruct other programs or systems on how to process and display the annotated text. HTML is an example of a markup language.
In short, the main difference between a programming language and a markup language is that a programming language is used to create programs that are executed by a computer, while a markup language is used to annotate text and provide instructions on how to process it should be displayed.