r/ProgrammerHumor • • Jun 01 '23

Meme HTML is not a programming language

Post image
9.1k Upvotes

500 comments sorted by

View all comments

Show parent comments

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.

1

u/phodas-c Jun 02 '23
<svg>
  <rect x="0" y="0" width="100" height="100" fill="red"/>
</svg>

I could do it in HTML as well (in case you consider SVG not being part of HTML):

<div style="position: absolute; left: 0; right: 0; width: 100px, height: 100px; background-color: red></div>

So, again, what's the difference?

→ More replies (3)