Fan: Is HTML a programming language?
Me: No
Fan: Why?
Me: Let's dive into this topic😇
What exactly is HTML🙃
HTML (Hypertext Markup Language)is a markup language & not a programming language. 😏
Key differences from programming languages👇
1. Purpose: HTML organizes content, while programming languages execute logic.
2. Syntax: HTML uses tags and attributes, whereas programming languages use statements and expressions.
Reasons why HTML is not a programming language🧐
1. No logical operators (e.g., if/else, loops)
2. No variables or data storage
3. No functions or subroutines
4. No conditional statements
5. No ability to perform calculations or computations
What HTML is used for🕵️
1. Structures content (headings, paragraphs, images, etc.)
2. Defines relationships between elements (links, nesting, etc.)
3. Provides semantic meaning to content (e.g., headings, emphasis)
4. Controls layout and visual presentation (using CSS)
Programming languages VS markup languages
🧑💻Examples Of Programming languages
1. JavaScript
2. Python
3. Java
4. C++
Examples Of Markup languages🌐
1. HTML
2. XML
3. CSS
4. Markdown
When & How does HTML work with programming languages🏂
1. JavaScript: Manipulates HTML elements dynamically.
2. Server-side languages (e.g., PHP, Ruby): Generate HTML content.
3. Templating engines (e.g., Handlebars): Combine HTML with dynamic data.
Note: HTML is a crucial tool for building web pages, but it's not a programming language. Instead, it's a markup language that structures and presents content.
Resources:
1. Martin Onyisi
2. Google
©️ Tech with Martony
#martonyvianney #techwithmartony
Comments
Post a Comment
What do you think?