title: Include JavaScript file in HTML won't work as <script .... />
body: <p>I'd like to include a javascript file on every page of a site. I can do this with:</p>
  
  <pre><code>&lt;script type="text/javascript" src="myFile.js" &gt;&lt;/script&gt;
  </code></pre>
  
  <p>This works fine - however as there's nothing between the two tags, I wanted to change it to:</p>
  
  <pre><code>&lt;script type="text/javascript" src="myFile.js" /&gt;
  </code></pre>
  
  <p>If I do this, it doesn't work - nothing after that line loads on the page.</p>
  
  <p>Any ideas why? Thanks</p>