Skip to content

Glossary: JavaScript Basics

script tag

Also written: <script>, type="module"

An HTML tag that tells the browser to run a JavaScript file, written `<script src="page.js"></script>`. Add `type="module"` when the file uses `import`.

Where the book teaches it

Related terms

HTMLES modules