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.
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.
is an algorithm. You're reading user input (mouse position) and producing variable output based on it.
Writing CSS is programming.