W3C home > Mailing lists > Public > public-html-comments@w3.org > September 2010

Re: suggestion for the HTML5 specs (src attribute on style tag)

From: Cameron Heavon-Jones <cmhjones@gmail.com>
Date: Tue, 21 Sep 2010 17:58:39 +0100
Message-Id: <37E87A8C-0E59-479C-A591-BF957077D488@gmail.com>
To: public-html-comments@w3.org
While it it true that virtually all html documents which currently exist use one of the two methods described for referencing a stylesheet this is because there is currently no other way to reference a stylesheet.

By providing the new and, IMO, intuitive way of referencing a stylesheet using it's own tag allows for greater human readability and understanding and forgoes the seemingly obtuse method of having to actually embed css in the tag to load the source file. The corollary would be to have to use javascript in a script tag to load a javascript file.

In addition, the link tag is overused in this respect and should be discouraged from being used to reference specific documents which are top-level facets of a html document, especially in html5 where css and javascript are defacto and essential in construction of any useful modern web page. 

For example, who would use the link tag to reference a javascript file? This tag is for generic use and while it can be used for any purpose, css style documents should not be forced through this hole.

In the same light, it could be said that the new semantic tags: header, nav, aside, etc are all currently possible using the more generic <div class="header"/> method, and none of the currently existing documents <= html4 will never be changed either.

I don't really see any valid reason for not including this enhancement other than the probably unappealing task of editing a specification which is well due and in need of ratification.

I would also point out that the link tag actually uses href and not src although the implications appear inconsequential. If there are any implications maybe someone could explain the difference in implementation between the two?

Peace,
Cam
Received on Tuesday, 21 September 2010 19:39:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:05 GMT