--- layout: single elementName: script ---

# script

Defines a container for an external script.

Example: Copy

{% highlight html %}{% endhighlight %}

Example: Copy

{% highlight html %}{% endhighlight %}

src

Defines the source of the external script.

"/javascript/my-scripts.js"

The URL can be relative or absolute.

type

Defines the MIME type of the external script.

"text/javascript"

This is for .js files.

async

Allows the external script to be loaded asynchronously.

No value required.