Attribute of
What does <script src=""> do?
Specifies the URL of an external script.

Coding Efficiently

Where possible, it's good practice to separate JavaScript from HTML by using an external script file and using <script> to import its contents.

The src attribute of <script> is used to specify the URL of the external file.

Browser Support for src