W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2008

Re: Is ID a valid attribute of the <style> tag?

From: Jens Meiert <jens@meiert.com>
Date: Mon, 9 Jun 2008 09:51:14 +0200
Message-ID: <9fbcac550806090051s75328b4bsf384ebc8d2cdfbfe@mail.gmail.com>
To: "Nathan Baker" <natembaker@gmail.com>
Cc: www-html-editor@w3.org

> Here is my question: Is ID a valid attribute of the <style> tag?

At least in XHTML, yes [1,2], and exactly b/c of the use case you
mentioned, for reference of in-document style rules.

> Two sources I trust say it is not.
>
> I guess this means that W3Schools.com and xhtml.com are incorrect?

That's why it's always better to be at /the/ source, I guess.


[1] http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_style
[2] http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_stylemodule

-- 
Jens Meiert
http://meiert.com/en/
Received on Monday, 9 June 2008 07:52:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:57 GMT