Menu
This…
“`html
<html>
<body>
<h1>Hello world!</h1>
</body>
<script src=”script.js”></script>
</html>
And this…
“`html
<html>
<body>
<h1>Hello world!</h1>
<script src=”script.js”></script>
</body>
</html>
I have seen both examples. What’s the difference, or which one is more “correct”? It has something to do with order in which page is rendered and script is loaded? Shouldn’t `<script>`<head>
This is what I expect to see…
“`html
<html>
<head>
<script src=”script.js”></script>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>