Skip to content

Commit 892af94

Browse files
I have moved the script tag from the head to the end of the body. But wait, what is the semantic meaning of this? Were scripts ever to be in the head or should they be in the body? Most scripts that target elements must be in the body so they can target the elements before them, but is this necessary for other scripts? Or are you to put them directly in the head?
1 parent b853280 commit 892af94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<html>
22
<head>
3-
<script src="redirect.js"></script>
43
<link href="style.css" rel="stylesheet">
54
</head>
65
<body>
76
<p>My website has moved to <a id="link"></a>.</p>
87
<p>You will be redirected shortly.</p>
8+
<script src="redirect.js"></script>
99
</body>
1010
</html>

0 commit comments

Comments
 (0)