HAPPY NEW YEAR FAMZ

Is HTML A Programming Language? why?


HTML is Not a Programming Language, 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.

HTML is a type of markup language. It 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.

Read also: How I Fooled Myself Thinking Html Is A Programming Language! Then Got favored.

HTML is not a programming language. The "M" stands for "Markup".
Generally, a programming language allows you to describe some sort of process of doing something, whereas HTML is a way of adding context and structure to text. You can't use it to make functions that will accomplish custom tasks, you have no variable or literal .. you can't build an application with it .. not even a dynamic web page without using some kind of programming or scripting language like PHP or JavaScript.

Basically you can use HTML to display items on the browser like text, images and CSS to style it to specific look. But you can't depend on them in bigger task.
Lately, we see HTML5 hold some of the functionality above which you can't do with the simple old HTML and CSS and that is because it is a combination of (HTML5, CSS3 and JavaScript) and not just simple tag any more. Unfortunately, coding only in HTML doesn’t make you a programmer. In fact, HTML really shines when you use it in conjunction with an actual programming language, such as when using a web framework.

Why is html not a programming language

1. you can not write algorithms in HTML that actually can be executed, because there is no actual software which would interprete this.
2. Html contains no programming logic.
3. html contains no conditional statements such as ( IF / ELSE).
4. Html cannot handle events or carry out task.
5. You cannot declare variable and you can not write functions.
6. it does not modify or multiply that are in any way.
7. Does not have any mathematical built in function.
8. Html is a language that use fixed set of elements.
9. It can evaluate expression nor do any maths.


Post a Comment

Previous Post Next Post