title: Are Type Attributes on SCRIPT, STYLE, and LINK elements still needed?
body: <p>You will see many sites with the following type of code: </p>
  
  <p>Script elements:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     //javascript here
  &lt;/script&gt;
  </code></pre>
  
  <p>Link elements:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="url.css" type="text/css" media="all" /&gt;
  </code></pre>
  
  <p>Style elements:</p>
  
  <pre><code>&lt;style type="text/css"&gt;
     /* CSS */
  &lt;/style&gt;
  </code></pre>
  
  <p>My question is this: </p>
  
  <p>Are the <code>type</code> attributes needed in the popular browsers today?</p>
  
  <p>(Popular meaning IE 8+, Firefox, Webkit, Opera and Chrome)</p>
  
  <p>What happens if you <em>do not</em> include them?</p>
  
  <p>Note: The answer needs to cover both HTML5 and XHTML doctypes if there is a difference in behavior between the two.</p>