Why do jQuery samples often omit script type?
<p>For example <a href="http://jqueryui.com/datepicker/">here</a> the code goes like this:</p>

<pre><code>&lt;html lang="en"&gt;
   &lt;head&gt;
     &lt;!-- whatever --&gt;
     &lt;script&gt;
       $(function() {
         $( "#datepicker" ).datepicker();
       });
     &lt;/script&gt;
   &lt;/head&gt;
 &lt;!-- whatever --&gt;
</code></pre>

<p>Note that <code>&lt;script&gt;</code> should have contained <code>type</code> attribute (perhaps set to <code>"text/javascript"</code>) but it is not present here.</p>

<p>This is not the only example I've seen. Such code makes Visual Studio editor unhappy - it underlines <code>&lt;script&gt;</code> and says there should be a <code>type</code> attribute. It also makes me curious big time.</p>

<p>Why is <code>type</code> often omitted? What happens if I add <code>type="text/javascript"</code> - will jQuery break or something? </p>
