Adding JavaScript to a Web Page part 2
JavaScript in <body>
Alternatively, include the JavaScript in the <body> tag.<html>
<head> </head>
<body>
<script>
</script>
</body>
</html>
It's a good idea to place scripts at the bottom of the <body> element.
This can improve page load, because HTML display is not blocked by scripts loading.
Where else is the "script" tag typically placed?
Comments
Post a Comment