<link> vs. <script> for external scripts

A couple of people were having a discussion on IRC the other day about 
the fact that <script> is used with a 'src' attribute to include 
external scripts rather than the link element. It seems to me more 
consistant and logical to use <link> for external resources like this 
and <script> for in-document scripts, such as <style> and <link> have a 
relationship for stylesheets.

The only thing that is actually missing for <link> to be properly used 
is the 'script' link-type. The 'src' attribute on the <script> element 
could probably be deprecated if this link-type was added since it 
wouldn't be necessary anymore.

Comments?

- Andy

Received on Tuesday, 18 November 2003 13:18:41 UTC