In HTML5, the script
element can be used for data blocks:
The
script
element allows authors to include dynamic script and data blocks in their documents.
The type
attribute gives the MIME type of the content.
If text/html
is used, does the script
element have to contain a full HTML document? Or are snippets (like in the following example) allowed, too?
<script type="text/html">
<div>Foobar.</div>
</script>