C, Java, Rust, etc it's all just text with keywords that get compiled/interpreted.
Yes. And the difference is that they have keywords necessary to write programs. If I remove one keyword, if, from the C syntax I make it unusable as a programming language.
HTML has no control flow facilities, no way of handling input. Hence: not a programming language.
<label>What is your name?</label>
<input type="text" id="name">
<div>
<if valueOf="name" op="equals" stringVal="John">
Johnny, good to see you again!
<else>
Hello ${name}, nice to meet you!
<endif>
</div>
HTML would have to have something like that to be a programming language.
Declarative languages generally don’t have control flow. Are none of them programming languages? My “programming languages” coursework included prolog- no control flow there.
0
u/[deleted] Jun 01 '23
[deleted]