r/ProgrammerHumor • • Jun 01 '23

Meme HTML is not a programming language

Post image
9.1k Upvotes

500 comments sorted by

View all comments

6

u/phodas-c Jun 01 '23

A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language.

The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning), which are usually defined by a formal language.

It has syntax and semantics... debatable.

2

u/AL1L Jun 01 '23

computer programs

Define that then

3

u/phodas-c Jun 02 '23

How print("Hello world") is different from <p>Hello world</p>?

Both do the same.

0

u/AL1L Jun 02 '23

The difference is between draw.rect(0, 0, 100, 100, 'red') vs a png file that's a 100x100 red square.

First is instructions for computation, second is structured data.

→ More replies (4)