HTML <script> Element Reference

The HTML <script> element embeds executable code or references an external script.

<script>

HTML <script> Element Reference

The HTML <script> element embeds executable code or references an external script.

Categories

  • Scripting

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical script element example.

<script type="module" src="/app.js"></script>

Related references

Description

The HTML <script> element embeds executable code or references an external script.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <script> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies