this post was submitted on 26 Jul 2024
280 points (95.5% liked)
Programmer Humor
32572 readers
764 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can't write a program in HTML.
End of discussion.
programing languages arent use to make programs they are used to program machines which is exactly what u do with html.
The "program" is the package of instructions that tell the machine what to do. The instructions are written in a programming language.
With a markup language, the markup is the input to a program (like a browser) that tells the machine what to do.
But I think it's not really boolean, it's a sliding scale. Especially with so many programming languages being interpreted or JIT compiled. I think it's less a programming language than many other programming-related things, but more of a programming language than, say, a slideshow.
Which HTML cannot do, because if it could, that would be called a program. That's what the word means.
HTML makes documents. It's a markup language. It's not even Turing-complete accidentally.
I mean technically I could write an interpreter that assigns semantics to HTML constructs.