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 comment

1

u/[deleted] Jun 01 '23

Programming languages can be used to write actual computer programs, i.e. algorithms that can take variable input, react and/or do computations with it, to produce variable output.

HTML cannot do that. It produces static visual output, like a JPEG file.

CSS can.

div {
    color: blue;
}

div:hover {
    color: red;
}

is an algorithm. You're reading user input (mouse position) and producing variable output based on it.

Writing CSS is programming.