W3C home > Mailing lists > Public > www-style@w3.org > August 2002

Re: Why is the style tag restricted to the head?

From: Jesse McCarthy <mccarthy36@earthlink.net>
Date: Wed, 14 Aug 2002 21:41:06 -0400 (EDT)
Message-Id: <SAK.2002.08.14.iolabehlrddsbfdt@a.b.c>
To: "www-style@w3.org" <www-style@w3.org>

>What reason is there for restricting the style tag to the head of the document?
>Why not allow it anywhere in the document so that <style> tags that are placed
>lower override earlier ones?

I've wondered this myself -- it caused me a lot of trouble with the dynamic
templating system I used to use to develop sites.

>Which further leads me to say that what you originally asked for can
>easily be achieved with LINK'ed stylesheets and a proper use of the
>CSS cascade rules.

You're presuming too much.  LINK'ed stylesheets couldn't solve my problem.
 Being able to use STYLE outside of HEAD would have though (or being able
to use LINK outside of HEAD for that matter).  Of course,
we're talking about the specification, you can actually use
STYLE outside of HEAD (not that I do it or recommend it), at least in IE 5

>It's more an HTML question than a CSS one...

I don't claim to know anything technical about how to implement these technologies in a
browser -- would it be feasible from the implementation perspective to allow
STYLE outside of HEAD on the basis that the rules in a given STYLE element
could only affect elements which followed them in document order?
Received on Monday, 19 August 2002 07:48:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:03 UTC