How wrong is it to place the script tag after the closing tag of the body (</body>)?
<html>
....
<body>
....
</body>
<script type="text/javascript" src="theJs.js"></script>
</html>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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>.