4 ms·
The thing that makes HTML and CSS different from Javascript is that they are declarative languages. The execution engine is elsewhere and the 'code' is really
by gerbilly 8y ago
The thing that makes HTML and CSS different from Javascript is that they are declarative languages.
The execution engine is elsewhere and the 'code' is really configuration for the HTML/CSS engines. Same thing for SQL which is another language he mentions.
There are many advantages to this. First, of all it's much less error prone to write, and second you don't have to run any code to predict it's output.[1]
If you pull the markup languages into a procedural framework, you lose many advantages.
[1] Testing becomes a matter of seeing the results in a browser, which is not to say it's trivial. The downside of declarative languages, is that it can be hard to debug when the engine does something unexpected (remember ie6?).