Possible Duplicate:
Is it wrong to place the <script> tag after the </body> tag?
//scripts
</body>
</html>
or
</body>
//scripts
</html>
I know it’s kind of a silly question but is there any difference between these two methods. I’ve read in books to do just before the </body> tag but in practice I’ve seen people do it just before the </html> tag. My instincts and current findings say that it shouldn’t matter I don’t think it would but being as I’m newer to web development I always second guess my work cause there could be something I don’t know about.
The comments are correct:
<script>outside theheadorbodyare not valid HTML.Here is the relevant spec