<script> document.write("Hello"); </script>
The script element is unique due to the fact that it can be placed inside both head and body sections. But the best place to have script elements is at the bottom of the web page. If the script elements are placed just before the ending body tag, then it leads to optimal page loading. The page renders smoothly and script files load later. If the script files are placed at the beginning the page may wait for the scripts to be loaded.