Which languages can be embedded into HTML5?

html, javascript

Solution

There’s not really any restriction. For instance, you can embed whatever language you want into `<script>` tags or via CSS. The following is entirely valid:

<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>

Same for CSS. Some technologies do harness this, in particular things like LESS and CoffeeScript. In both cases, the actual interpretation of the embedded language is handled by a JavaScript that is loaded additionally (just like in the above example).

Problem

As far as I know: CSS can be embedded via `<style>` JavaScript can be embedded via `<script>` MathML can be embedded via `<math>` SVG can be embedded via `<svg>` Are there any other languages that can be embedded into HTML5? If so, could you show me the examples?

Original source