<script
src="myscript.js"
attributionsrc="https://a.example/register-source https://b.example/register-source"></script>`<script>` HTML script element / notebook
`<script>` HTML script element
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<script src="javascript.js"></script><script>
alert("Hello World!");
</script><script async src="js/vendor/jquery.js"></script>
<script async src="js/script2.js"></script>
<script async src="js/script3.js"></script><script defer src="js/vendor/jquery.js"></script>
<script defer src="js/script2.js"></script>
<script defer src="js/script3.js"></script><script type="module" src="main.js"></script>
<script nomodule src="fallback.js"></script>import { name as circleName } from "https://example.com/shapes/circle.js";
import { name as squareName, draw } from "./shapes/square.js";<script type="importmap">
{
"imports": {
"circle": "https://example.com/shapes/circle.js",
"square": "./shapes/square.js"
}
}
</script>import { name as circleName } from "circle";
import { name as squareName, draw } from "square";<!-- Generated by the server -->
<script id="data" type="application/json">
{
"userId": 1234,
"userName": "Maria Cruz",
"memberSince": "2000-01-01T00:00:00.000Z"
}
</script>
<!-- Static -->
<script>
const userInfo = JSON.parse(document.getElementById("data").text);
console.log("User information: %o", userInfo);
</script><script blocking="render" async src="async-script.js"></script>