Why is HTML not considered programming?

Because HTML doesn’t do the things that that programming languages do.
It can’t make decisions and it can’t loop.  You can’t give it a list of numbers and have it sort them or find the average, something all programming languages can do. HTML is about displaying text and images and creating hyperlinks. That’s why it is a markup language and not a programming language.
That said, it is possible to embed a programming language like javascript into HTML, and once you do that, you start to incorporate programming tasks into your web pages.

Leave a Reply

Your email address will not be published. Required fields are marked *