Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

<link> vs. <script> for external scripts

From: Andy Holmes <aholmes84@shaw.ca>
Date: Tue, 18 Nov 2003 10:15:41 -0800
To: www-html@w3.org
Message-id: <3FBA61CD.1050106@shaw.ca>

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 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.