In fact, there are no restrictions. For example, you can embed any language in <script> tags or through CSS. Assume the following:
<html> <head> <script type="text/x-my-cool-language"> PrintTheAnswer() </script> <script src="my-cool-interpreter.js" type="text/javascript"></script> </head> <body> β¦ </body> </html>
The same goes for CSS. Some technologies use this, in particular, such as LESS and CoffeeScript . In both cases, the actual interpretation of the embedded language is processed by JavaScript, which is loaded additionally (as in the above example).
source share