title: What's the difference between using link and script tag to reference JavaScript source?
body: <p>I've tried using both the following source-reference-lines<del>. They both compile</del>. But what is the difference?</p>
  
  <p>1st method:</p>
  
  <pre><code>&lt;script src="~/Scripts/jquery-1.4.1.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>2nd method:</p>
  
  <pre><code>&lt;link href="~/Scripts/jquery-1.4.1.js" type="text/javascript" /&gt;
  </code></pre>
  
  <hr>
  
  <p>Note: There's also the similar <em><a href="https://stackoverflow.com/questions/51105967/difference-between-script-and-link-as-script">Difference between <code>script</code> and <code>link as="script"</code> tags</em></a> which asks about <code>&lt;link href="js/script.js" as="script"&gt;</code>, which is different.</p>