Ticker

6/recent/ticker-posts

Why HTML is not a programming language?




Why HTML is not a Programming Language???
.
HTML is great. It defines the structure of webpages and it determines how data is displayed online. What you’re looking at right now is HTML code, read and interpreted by your browser. But this doesn’t make HTML a programming language, but a Markup Language.

HTML is a type of markup language that encapsulates, or “marks up” data within HTML tags, which define the data and describe its purpose on the webpage. The web browser then reads the HTML, which tells it things like which parts are headings, which parts are paragraphs, which parts are links, etc. The HTML describes the data to the browser, and the browser then displays the data accordingly.
.
Programming languages have functional purposes. HTML, as a markup language doesn’t really “do” anything in the sense that a programming language does. HTML contains no programming logic. It doesn’t have common conditional statements such as If/Else. It can’t evaluate expressions or do any math. It doesn’t handle events or carry out tasks. You can’t declare variables and you can’t write functions. It doesn’t modify or manipulate data in any way. HTML can’t take input and produce output. Think of it this way: you can’t compute the sum of 2 + 2 in HTML; that’s not what it’s for. This is because HTML is not a programming language.

Post a Comment

0 Comments