< All the HTML Tags >

<script></script>

Video Coming Soon...

  • script

    Tag Type

    inline

    Tag Category

    scripting

    Defines a client-side script

    Viewed

    1

    Examples

    1

Definition:

The HTML <script> tag is used to embed JavaScript code or link to external JavaScript files, enabling dynamic behavior and interactivity on web pages.

It can include attributes like src (specifying the URL of the external script) and defer (indicating that the script should be executed after the document has been parsed).

Understanding the `<script>` tag is crucial for incorporating dynamic functionality into your web applications.

Attributes:

async, defer, src, type, crossorigin, integrity, referrerpolicy, nomodule

Accessibility:

Coming Soon…

Default script Example:

Using the <script> tag to include JavaScript.
<script>console.log("Hello World")</script>

Default script Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…