The src attribute is the file path to your .js file.
<!DOCTYPE html> <head></head> <body> <h1>Hello World!</h1> <script> document.write(‘Hello World!’); // Will print off “Hello World!” </script> <body> </html>
Within your HTML document under the <head> tag:
The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps. It also has some developer-oriented documentation for Mozilla products, such as Firefox Developer Tools.