# Running JavaScript in the Browser
When you want to add JavaScript files to your web pages you will need to use script tags.
<script src="myscript.js"></script>
1
The recommended place to add your scripts is inside the body element, after all your other HTML.
<body>
<script src="myscript.js"></script>
</body>
1
2
3
2
3
Another recommended feature that you can add to your script tag is the defer
attribute. This will tell modern browsers to wait until all your HTML has loaded before trying to run your script.