How wrong is it to place the script tag after the closing tag of the body (</body>). ?
</body>
<html> .... <body> .... </body> <script type="text/javascript" src="theJs.js"></script> </html>
It won't validate outside of the <body> or <head> tags. It also won't make much difference — unless you're doing DOM manipulations that could break IE before the body element is fully loaded — to putting it just before the closing </body>.
<body>
<head>
<html> .... <body> .... <script type="text/javascript" src="theJs.js"></script> </body> </html>
1.4m articles
1.4m replys
5 comments
57.0k users