<script>
Executable code or embedded data blocks.
Baseline: Widely available · Scripting
When to use it
type='application/ld+json' for structured data (the one script even a no-JS site carries); defer or type='module' for behavior so parsing never blocks.
When not to
No inline onclick attributes, no document.write, and nothing render-blocking in head without reason.
Key attributes
src- external script
type- module or a data MIME type
defer / async- non-blocking loading
Example
<script type='application/ld+json'>
{ "@context": "https://schema.org", "@type": "Article", "headline": "…" }
</script>